'How do I exclude files from svelte-kit build?
If I run npm run build with SvelteKit it seems to include all files from the src folder. Is it possible to exclude a certain file type (eg. *test.js)?
Example
Select demo app with
npm init svelte@next my-appAdd the following code to
src/routes/todos/foo.test.jsdescribe('foo', () => { it('temp', () => { expect(true).toBe(false) }) })npm run buildnpm run preview
Result: describe is not defined
Workaround
Move tests outside of src
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
