Skip to content

Commit

Permalink
fix community adder tests
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel3108 committed Oct 24, 2024
1 parent bf45bf9 commit ff96d27
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
10 changes: 9 additions & 1 deletion community-adder-template/tests/end2end.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
import { test, describe, beforeAll, afterAll } from 'vitest';
import { runEndToEndTests } from '@sveltejs/adder-testing-library';
import adder from '../src/index.js';
import { tests } from './tests.js';

runEndToEndTests('.outputs-e2e', [adder], describe, test.concurrent, beforeAll, afterAll);
runEndToEndTests(
'.outputs-e2e',
[{ config: adder, tests }],
describe,
test.concurrent,
beforeAll,
afterAll
);
3 changes: 2 additions & 1 deletion community-adder-template/tests/snapshot.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { test, describe, beforeAll, afterAll } from 'vitest';
import { runSnapshotTests } from '@sveltejs/adder-testing-library';
import adder from '../src/index.js';
import { tests } from './tests.js';

runSnapshotTests(
'.outputs-snapshots',
'_snapshot',
[adder],
[{ config: adder, tests }],
describe,
test.concurrent,
beforeAll,
Expand Down
1 change: 1 addition & 0 deletions community-adder-template/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { defineConfig, type UserConfig } from 'vitest/config';
export default defineConfig({
test: {
include: ['./tests/**/*.js'],
exclude: ['./tests/tests.js'],
testTimeout: 1000 * 60 * 2, // 2 minutes
hookTimeout: 1000 * 60 * 3, // 3 minutes
pool: 'threads'
Expand Down

0 comments on commit ff96d27

Please sign in to comment.