Skip to content

Commit 619829f

Browse files
committed
chore: fix tests
1 parent 0de16c3 commit 619829f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/babel-plugin/__tests__/stylex-transform-alias-config-test.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ describe('StyleX Alias Configuration', () => {
5858
const manager = new StateManager(state);
5959

6060
expect(manager.options.aliases).toEqual({
61-
components: [path.join(tmpDir, './src/components')],
62-
'utils/*': [path.join(tmpDir, './src/utils/*')],
61+
'#components': [path.join(tmpDir, './src/components')],
62+
'#utils/*': [path.join(tmpDir, './src/utils/*')],
6363
});
6464
});
6565

@@ -130,7 +130,7 @@ describe('StyleX Alias Configuration', () => {
130130
const manager = new StateManager(state);
131131

132132
expect(manager.options.aliases).toEqual({
133-
components: [path.join(tmpDir, 'src/components')],
133+
'#components': [path.join(tmpDir, 'src/components')],
134134
'@utils/*': [path.join(tmpDir, 'src/utils/*')],
135135
'@styles/': [path.join(tmpDir, 'src/styles')],
136136
});
@@ -155,6 +155,7 @@ describe('StyleX Alias Configuration', () => {
155155
const manager = new StateManager(state);
156156

157157
expect(manager.options.aliases).toEqual({
158+
'#components': [path.join(tmpDir, 'src/components')],
158159
components: [path.join(tmpDir, 'custom/path')],
159160
});
160161
});

0 commit comments

Comments
 (0)