Skip to content

[Testing] npm run test:node > node ./test/node/cjs/index.js #1095

Closed
@nopeless

Description

@nopeless

low priority, putting this issue out so it can be tracked

> bun run test
...
✓ Web Standard - Parse Set Cookie > should handle a setCookie array with multiple elements, each containing multiple key-value pairs
✓ Web Standard - Parse Set Cookie > should handle null values

 1060 pass
 0 fail
 1668 expect() calls
Ran 1060 tests across 101 files. [2.37s]
$ bun run ./test/type-system/import.ts
✅ TypeSystem import works!
$ npm install --prefix ./test/node/cjs/ && npm install --prefix ./test/node/esm/ && node ./test/node/cjs/index.js && node ./test/node/esm/index.js && bun dist/bun/index.js

up to date, audited 3 packages in 1s

found 0 vulnerabilities

up to date, audited 3 packages in 1s

found 0 vulnerabilities
node:internal/modules/cjs/loader:598
      throw e;
      ^

Error: Cannot find module 'N:\public-projects\elysia\test\node\cjs\node_modules\elysia\dist\cjs\index.js'
    at createEsmNotFoundErr (node:internal/modules/cjs/loader:1181:15)
    at finalizeEsmResolution (node:internal/modules/cjs/loader:1169:15)
    at resolveExports (node:internal/modules/cjs/loader:591:14)
    at Module._findPath (node:internal/modules/cjs/loader:668:31)
    at Module._resolveFilename (node:internal/modules/cjs/loader:1130:27)
    at Module._load (node:internal/modules/cjs/loader:985:27)
    at Module.require (node:internal/modules/cjs/loader:1235:19)
    at require (node:internal/modules/helpers:176:18)
    at Object.<anonymous> (N:\public-projects\elysia\test\node\cjs\index.js:5:20)
    at Module._compile (node:internal/modules/cjs/loader:1376:14) {
  code: 'MODULE_NOT_FOUND',
  path: 'N:\\public-projects\\elysia\\test\\node\\cjs\\node_modules\\elysia\\package.json'
}

Node.js v20.11.1
error: script "test:node" exited with code 1
error: script "test:functionality" exited with code 1
error: script "test" exited with code 1

I am looking into this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions