Skip to content

Commit e7e2987

Browse files
authored
chore(web-components): build tokens package before running e2e tests (#33638)
1 parent 614e8b5 commit e7e2987

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "none",
3+
"comment": "build tokens package before running e2e tests",
4+
"packageName": "@fluentui/web-components",
5+
"email": "863023+radium-v@users.noreply.github.com",
6+
"dependentChangeType": "none"
7+
}

packages/web-components/test/harness/vite.config.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
import { createRequire } from 'node:module';
2+
import { dirname, join } from 'node:path';
13
import type { UserConfig } from 'vite';
24

5+
const { resolve } = createRequire(import.meta.url);
6+
37
export default {
48
clearScreen: false,
59
publicDir: '../../public',
@@ -20,4 +24,9 @@ export default {
2024
strictPort: true,
2125
open: false,
2226
},
27+
resolve: {
28+
alias: {
29+
'@fluentui/tokens': join(dirname(resolve('@fluentui/tokens/package.json')), 'src'),
30+
},
31+
},
2332
} as UserConfig;

0 commit comments

Comments
 (0)