Skip to content

Commit 8c1ac79

Browse files
authored
chore: only run rstest core tests in rspack ci (#21)
1 parent a849cbd commit 8c1ac79

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

tests/rspack/rstest.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
11
import type { RunOptions } from '../../types';
2-
import { $, runInRepo } from '../../utils';
2+
import { $, cd, runInRepo } from '../../utils';
33

44
export async function test(options: RunOptions) {
55
await runInRepo({
66
...options,
77
repo: 'web-infra-dev/rstest',
88
branch: process.env.RSTEST ?? 'main',
99
// ignore snapshot changes
10-
test: ['test -u', 'e2e'],
10+
test: [
11+
'test -u',
12+
'test:examples',
13+
async () => {
14+
cd('./e2e');
15+
await $`pnpm run test`;
16+
cd('..');
17+
},
18+
],
1119
beforeTest: async () => {
1220
await $`npx playwright install chromium webkit --with-deps`;
1321
},

0 commit comments

Comments
 (0)