svelte-declarative-testing 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-declarative-testing",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "A way to mount your Svelte test components declaratively",
5
5
  "type": "module",
6
6
  "module": "src/index.js",
@@ -131,6 +131,7 @@ const post = () => ({
131
131
  },
132
132
  });
133
133
 
134
+ /**@returns {import('vitest/config').Plugin[]} */
134
135
  export default function getPlugins() {
135
136
  return [pre(), post()];
136
137
  }
package/vitest.config.ts CHANGED
@@ -7,6 +7,22 @@ export default defineConfig({
7
7
  logLevel: 'warn',
8
8
  plugins: [svelte(), svelteTesting(), getPlugins()],
9
9
  test: {
10
+ projects: [
11
+ {
12
+ extends: './vitest.config.ts',
13
+ test: {
14
+ name: 'unit',
15
+ include: ['src/**/*.{test,spec}.ts'],
16
+ },
17
+ },
18
+ {
19
+ extends: './vitest.config.ts',
20
+ test: {
21
+ name: 'examples',
22
+ include: ['examples/**/*.{test,spec}.svelte'],
23
+ },
24
+ },
25
+ ],
10
26
  coverage: {
11
27
  provider: 'v8',
12
28
  reporter: ['text', 'html'],
@@ -16,6 +32,5 @@ export default defineConfig({
16
32
  requireAssertions: true,
17
33
  },
18
34
  globals: true,
19
- include: ['examples/**/*.{test,spec}.svelte', 'src/**/*.{test,spec}.ts'],
20
35
  },
21
36
  });