Skip to content

Commit ff96d27

Browse files
committed
fix community adder tests
1 parent bf45bf9 commit ff96d27

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed
Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
import { test, describe, beforeAll, afterAll } from 'vitest';
22
import { runEndToEndTests } from '@sveltejs/adder-testing-library';
33
import adder from '../src/index.js';
4+
import { tests } from './tests.js';
45

5-
runEndToEndTests('.outputs-e2e', [adder], describe, test.concurrent, beforeAll, afterAll);
6+
runEndToEndTests(
7+
'.outputs-e2e',
8+
[{ config: adder, tests }],
9+
describe,
10+
test.concurrent,
11+
beforeAll,
12+
afterAll
13+
);

community-adder-template/tests/snapshot.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import { test, describe, beforeAll, afterAll } from 'vitest';
22
import { runSnapshotTests } from '@sveltejs/adder-testing-library';
33
import adder from '../src/index.js';
4+
import { tests } from './tests.js';
45

56
runSnapshotTests(
67
'.outputs-snapshots',
78
'_snapshot',
8-
[adder],
9+
[{ config: adder, tests }],
910
describe,
1011
test.concurrent,
1112
beforeAll,

community-adder-template/vitest.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { defineConfig, type UserConfig } from 'vitest/config';
33
export default defineConfig({
44
test: {
55
include: ['./tests/**/*.js'],
6+
exclude: ['./tests/tests.js'],
67
testTimeout: 1000 * 60 * 2, // 2 minutes
78
hookTimeout: 1000 * 60 * 3, // 3 minutes
89
pool: 'threads'

0 commit comments

Comments
 (0)