-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to run npm run test
locally
#164
Comments
This is on the Maybe the cause is a missing config file for playwright and vitest? |
Maybe this is a Windows issue? Does it work if you replace backward with forward slashes? vitest --run --coverage tests\unit\*.ts && playwright test tests\*.test.ts |
@janosh Nope, that caused an escape character error, so I tried to escape the backslashes, but I get the same error. I tried the following to no avail: vitest --run --coverage tests\unit\*.ts && playwright test tests\*.test.ts vitest --run --coverage tests\\unit\\*.ts && playwright test tests\\*.test.ts vitest --run --coverage ./tests/unit/*.ts && playwright test ./tests/*.test.ts vitest --run --coverage *tests/unit/*.ts && playwright test *tests/*.test.ts |
What about quoting the paths? Maybe it's a shell expansion issue. vitest --run --coverage 'tests/unit/*.ts' && playwright test 'tests/*.test.ts' |
* Add new prop: `disableRemoveButton` fix #163 * Add documentation for `disableRemoveButton` fix #163 * Add example for `disableRemoveButton` fix #163 * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix numbering in readme * Change comment on how to run tests related #164 * Fix ts linting error on import * fix tests and pre-commit.ci Error: Cannot find module '/home/runner/work/svelte-multiselect/svelte-multiselect/src/options' imported from /home/runner/work/svelte-multiselect/svelte-multiselect/tests/multiselect.test.ts pre-commit.ci: - hook id: codespell - exit code: 65 src/options.ts:61: FO ==> OF, FOR, TO, DO, GO src/options.ts:61: RO ==> TO, ROW, ROB, ROD, ROE, ROT * Change from disableRemoveBtn to minSelect As described here: #163 (comment) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * move minSelect readme docs to alphabetical order * tweak minSelect section in Examples.svelte * add test 'does not render remove buttons if selected.length <= minSelect' * update repl_url for minSelect example Co-authored-by: Janosh Riebesell <janosh.riebesell@gmail.com>
Hmm, maybe... I'll try that next :) |
Closing this as resolved assuming it was a shell expansion issue. Feel free to reopen if not. |
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:
text:
The text was updated successfully, but these errors were encountered: