question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to run `npm run test` locally

See original GitHub issue

I tried testing the feature I’m implementing in #163 , but when running npm run test I get the following error: No test files found, exiting with code 1

screenshot: image

text:

PS D:\code\svelte-multiselect> npm run test

> svelte-multiselect@8.0.4 test
> vitest --run --coverage tests/unit/*.ts && playwright test tests/*.test.ts


 RUN  v0.25.1 D:/code/svelte-multiselect
      Coverage enabled with c8

filter:  tests/unit/*.ts
include: **/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}
exclude:  **/node_modules/**, **/dist/**, **/cypress/**, **/.{idea,git,cache,output,temp}/**, 
**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress}.config.*
watch exclude:  **/node_modules/**, **/dist/**

No test files found, exiting with code 1

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
janoshcommented, Dec 25, 2022

Closing this as resolved assuming it was a shell expansion issue. Feel free to reopen if not.

0reactions
Snailedltcommented, Nov 18, 2022

Hmm, maybe… I’ll try that next 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to run npm run test without strange error on Windows 10
I get the following error when running npm run test with the most recent version of the master branch on Windows 10.
Read more >
can't run "npm start" - Stack Overflow
I believe start needs to be in the "scripts" section of package.json; right now you only have test as a script. I would...
Read more >
Unable to run npm test as a task. - Atlassian Community
I'm currently trying to run 'npm test' as a task. The command is simply 'test'. When I try to run my build plan...
Read more >
start-server-and-test - npm
Starts server, waits for URL, then runs test command; when the tests end, shuts down server. Latest version: 1.15.2, last published: 19 days ......
Read more >
jest: command not found error [Solved] | bobbyhadz
Use `npx` to solve the error jest: command not found, e.g. `npx jest` or install the package globally by running `npm install -g...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found