Skip to content

Running pnpm test fails on Windows #2234

@LankyMoose

Description

@LankyMoose

I've tried to run the tests via Windows 11 (tried WSL too) to no avail. I know this probably isn't a 'Dexie problem' per say but still worth having here.

rob@rob-pc:/mnt/c/repos/Dexie.js$ pnpm test

> [email protected] test C:\repos\Dexie.js
> pnpm run build && pnpm run test:typings && pnpm run test:unit


> [email protected] build C:\repos\Dexie.js
> just-build

Package: C:\repos\Dexie.js
Build all targets (es5, es6 and test) and minify the default es5 UMD module
Build ES5 umd module as well as the es6 module.
Build dist/dexie.js, dist/dexie.mjs and dist/dexie.d.ts
> cd src
(node)> tsc 
Build the test suite.
> cd test
(node)> tsc 
(node)> tsc --target es2021 --outdir ../tools/tmp/modern/src/
(node)> rollup -c ../tools/build-configs/rollup.tests.config.mjs

C:\repos\Dexie.js\tools\tmp\test\tests-all.js → bundle.js...
(node)> rollup -c ../tools/build-configs/rollup.config.mjs
created bundle.js in 1.7s

C:\repos\Dexie.js\tools\tmp\src\index.js → ../dist/dexie.mjs...
created ../dist/dexie.mjs in 643ms
(node)> rollup -c ../tools/build-configs/rollup.umd.config.mjs

C:\repos\Dexie.js\tools\tmp\src\index-umd.js → ../dist/dexie.js...
created ../dist/dexie.js in 648ms
(node)> rollup -c ../tools/build-configs/rollup.modern.config.mjs

C:\repos\Dexie.js\tools\tmp\modern\src\index.js → ../dist/modern/dexie.mjs...
created ../dist/modern/dexie.mjs in 618ms
(node)> ../tools/replaceVersionAndDate.js ../dist/dexie.js
(node)> ../tools/replaceVersionAndDate.js ../dist/dexie.mjs
(node)> ../tools/replaceVersionAndDate.js ../dist/modern/dexie.mjs
(node)> dts-bundle-generator --inline-declare-global --inline-declare-externals --no-check -o ../dist/dexie.d.ts public/index.d.ts
Compiling input files...
Processing public/index.d.ts
Writing public/index.d.ts -> ../dist/dexie.d.ts
File checking is skipped (due nothing to check)
Done in 0.92s
(node)> ../tools/fix-dts-duplicates.js ../dist/dexie.d.ts
Found 2 duplicate module declarations. Removing duplicates...
Fixed duplicate module declarations
(node)> ../tools/prepend.js ../dist/dexie.d.ts ../tools/build-configs/banner.txt
(node)> ../tools/replaceVersionAndDate.js ../dist/dexie.d.ts
(node)> tools/replaceVersionAndDate.js dist/dexie.d.ts
Minify the default ES5 UMD module
> cd dist
(node)> uglifyjs dexie.js -m -c negate_iife=0 -o dexie.min.js --source-map url=dexie.min.js.map
Minify modern bundle
> cd modern
(node)> terser --comments false --compress --mangle --module --source-map url=dexie.min.mjs.map -o dexie.min.mjs -- dexie.mjs
just-build default done.

> [email protected] test:typings C:\repos\Dexie.js
> tsc -p test/typings-test/


> [email protected] test:unit C:\repos\Dexie.js
> karma start test/karma.conf.js --single-run

LT_TUNNEL_NAME undefined
Browser-suite: local
Browsers to test: Chrome
30 01 2026 16:26:21.008:ERROR [plugin]: Cannot find plugin "karma-webdriver-launcher".
  Did you forget to install it?
  npm install karma-webdriver-launcher --save-dev

START:
30 01 2026 16:26:21.034:WARN [filelist]: All files matched by "C:/repos/Dexie.js/test/worker.js" were excluded or matched by prior matchers.
30 01 2026 16:26:21.045:INFO [karma-server]: Karma v6.4.4 server started at http://localhost.lambdatest.com:9876/
30 01 2026 16:26:21.046:INFO [launcher]: Launching browsers Chrome with concurrency unlimited
30 01 2026 16:26:21.046:ERROR [karma-server]: Error: Found 1 load error
    at Server.<anonymous> (C:\repos\Dexie.js\node_modules\.pnpm\[email protected]\node_modules\karma\lib\server.js:243:26)
    at Object.onceWrapper (node:events:633:28)
    at Server.emit (node:events:531:35)
    at emitListeningNT (node:net:1983:10)
    at process.processTicksAndRejections (node:internal/process/task_queues:89:21)
 ELIFECYCLE  Command failed with exit code 1.
 ELIFECYCLE  Test failed. See above for more details.

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