We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a849cbd commit 8c1ac79Copy full SHA for 8c1ac79
1 file changed
tests/rspack/rstest.ts
@@ -1,13 +1,21 @@
1
import type { RunOptions } from '../../types';
2
-import { $, runInRepo } from '../../utils';
+import { $, cd, runInRepo } from '../../utils';
3
4
export async function test(options: RunOptions) {
5
await runInRepo({
6
...options,
7
repo: 'web-infra-dev/rstest',
8
branch: process.env.RSTEST ?? 'main',
9
// ignore snapshot changes
10
- test: ['test -u', 'e2e'],
+ test: [
11
+ 'test -u',
12
+ 'test:examples',
13
+ async () => {
14
+ cd('./e2e');
15
+ await $`pnpm run test`;
16
+ cd('..');
17
+ },
18
+ ],
19
beforeTest: async () => {
20
await $`npx playwright install chromium webkit --with-deps`;
21
},
0 commit comments