Skip to content

refine where the tests are ran#44

Closed
TheRealOwenRees wants to merge 1 commit intoexercism:mainfrom
TheRealOwenRees:hotfix/tests
Closed

refine where the tests are ran#44
TheRealOwenRees wants to merge 1 commit intoexercism:mainfrom
TheRealOwenRees:hotfix/tests

Conversation

@TheRealOwenRees
Copy link
Copy Markdown
Contributor

@TheRealOwenRees TheRealOwenRees commented Mar 31, 2026

Only pick up tests in the tmp/tests directory. Tests were being picked up in the other directories on my machine.

It fixes the below error:

npm run ci

> ci
> npm test


> test
> rescript && retest tests/*.js

[1/3] 🧹 Cleaned 0/121 in 0.01s
[2/3] 🧱 Parsed 56 source files in 0.17s
[3/3] 🤺 Compiled 56 modules in 0.25s

✨ Finished Compilation in 0.44s
node:internal/modules/esm/resolve:274
    throw new ERR_MODULE_NOT_FOUND(
          ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/home/owen/Desktop/rescript/node_modules/rescript-test/src/Test.js' imported from /home/owen/Desktop/rescript/node_modules/rescript-test/bin/retest.mjs
    at finalizeResolution (node:internal/modules/esm/resolve:274:11)
    at moduleResolve (node:internal/modules/esm/resolve:864:10)
    at defaultResolve (node:internal/modules/esm/resolve:990:11)
    at #cachedDefaultResolve (node:internal/modules/esm/loader:718:20)
    at #resolveAndMaybeBlockOnLoaderThread (node:internal/modules/esm/loader:735:38)
    at ModuleLoader.resolveSync (node:internal/modules/esm/loader:764:52)
    at #resolve (node:internal/modules/esm/loader:700:17)
    at ModuleLoader.getOrCreateModuleJob (node:internal/modules/esm/loader:620:35)
    at onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:649:32)
    at TracingChannel.tracePromise (node:diagnostics_channel:350:14) {
  code: 'ERR_MODULE_NOT_FOUND',
  url: 'file:///home/owen/Desktop/rescript/node_modules/rescript-test/src/Test.js'
}

@TheRealOwenRees TheRealOwenRees added x:rep/tiny Tiny amount of reputation and removed x:rep/tiny Tiny amount of reputation labels Mar 31, 2026
@TheRealOwenRees TheRealOwenRees deleted the hotfix/tests branch April 1, 2026 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant