Akryum / peeky

A fast and fun test runner for Vite & Node 🐈️ Powered by Vite ⚡️
https://peeky.dev
MIT License
681 stars 17 forks source link

Running multiple files: Cannot read properties of undefined (reading 'some') #47

Closed distantnative closed 2 years ago

distantnative commented 2 years ago

When running multiple test files, I get the following error for every file but the first. The first succeeds:

 ERROR  Running tests failed: TypeError: Cannot read properties of undefined (reading 'some')(/@fs//kirby/panel/src/helpers/color.test.js)
    at matchModuleFilter (file://kirby/sandbox/kirby/panel/node_modules/@peeky/runner/src/runtime/vite.ts:319:18)
    at shouldExternalize (file://kirby/sandbox/kirby/panel/node_modules/@peeky/runner/src/runtime/vite.ts:311:7)
    at cachedRequest (file://kirby/sandbox/kirby/panel/node_modules/@peeky/runner/src/runtime/vite.ts:169:9)
    at executeWithVite (file://kirby/sandbox/kirby/panel/node_modules/@peeky/runner/src/runtime/vite.ts:121:25)
    at AsyncFunction.runTestFile (file://kirby/sandbox/kirby/panel/node_modules/@peeky/runner/src/runtime/run-test-file.ts:101:35)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

I have tested each file on its own and then tests pass successfully.

(Peeky 0.8.2)

Please let me know what additional information would help (ps such great work you do!).

Akryum commented 2 years ago

https://github.com/Akryum/peeky/releases/tag/v0.8.3