You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ npm run test:unit
> test:unit
> vite-jest● Validation Error: Preset vite-jest is invalid: String.prototype.startsWith called on null or undefined TypeError: String.prototype.startsWith called on null or undefined at startsWith (<anonymous>) at node:internal/errors:811:19 at Array.filter (<anonymous>) at node:internal/errors:809:16 at prepareStackTrace (node:internal/errors:96:12) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1138:38) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:94:18) Configuration Documentation: https://jestjs.io/docs/configuration/path/to/project/vite-jest/examples/vue-app-ts/node_modules/execa/lib/error.js:60 error = new Error(message); ^Error: Command failed with exit code 1: node --experimental-vm-modules /path/to/project/vite-jest/examples/vue-app-ts/node_modules/jest/bin/jest.js at makeError (/path/to/project/vite-jest/examples/vue-app-ts/node_modules/execa/lib/error.js:60:11) at Function.module.exports.sync (/path/to/project/vite-jest/examples/vue-app-ts/node_modules/execa/index.js:194:17) at file:///path/to/project/vite-jest/examples/vue-app-ts/node_modules/vite-jest/bin/vite-jest.js:11:7 at ModuleJob.run (node:internal/modules/esm/module_job:183:25) at async Loader.import (node:internal/modules/esm/loader:178:24) at async Object.loadESM (node:internal/process/esm_loader:68:5) at async handleMainPromise (node:internal/modules/run_main:63:12) { shortMessage: 'Command failed with exit code 1: node --experimental-vm-modules /path/to/project/vite-jest/examples/vue-app-ts/node_modules/jest/bin/jest.js', command: 'node --experimental-vm-modules /path/to/project/vite-jest/examples/vue-app-ts/node_modules/jest/bin/jest.js', escapedCommand: 'node --experimental-vm-modules "/path/to/project/vite-jest/examples/vue-app-ts/node_modules/jest/bin/jest.js"', exitCode: 1, signal: undefined, signalDescription: undefined, stdout: undefined, stderr: undefined, failed: true, timedOut: false, isCanceled: false, killed: false}
Environment info
MacOS Big Sur 11.5.1
$ npm --version7.19.1
$ node --versionv16.6.0
The text was updated successfully, but these errors were encountered:
imomaliev
changed the title
Preset vite-jest is invalid
Running examples/vue-app-ts tests throws "Preset vite-jest is invalid"
Aug 3, 2021
Runnig vite-jest in example
vue-app-ts
throws an error.Steps to reproduce
git clone [email protected]:sodatea/vite-jest.git
cd examples/vue-app-ts
Update package.json
npm i
npm run test:unit
Environment info
MacOS Big Sur 11.5.1
The text was updated successfully, but these errors were encountered: