Skip to content

Commit 8790fb1

Browse files
committed
test: refactor test for codegen
1 parent 861b012 commit 8790fb1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

packages/codegen/e2e-test/index.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ test('generates .d.ts', async () => {
1313
'src/a.module.css': dedent`
1414
@import './b.module.css';
1515
@import './external.css';
16-
/* @import '@/c.module.css'; */ /* TODO: Fix this */
16+
@import '@/c.module.css';
1717
.a1 { color: red; }
1818
`,
1919
'src/b.module.css': `.b1 { color: red; }`,
@@ -22,7 +22,7 @@ test('generates .d.ts', async () => {
2222
import styles from './a.module.css';
2323
(styles.a1 satisfies string);
2424
(styles.b1 satisfies string);
25-
// (styles.c1 satisfies string); // TODO: Fix this
25+
(styles.c1 satisfies string);
2626
// @ts-expect-error
2727
styles.a2;
2828
`,
@@ -47,6 +47,7 @@ test('generates .d.ts', async () => {
4747
declare const styles = {
4848
a1: '' as readonly string,
4949
...(await import('./b.module.css')).default,
50+
...(await import('@/c.module.css')).default,
5051
};
5152
export default styles;
5253
"

0 commit comments

Comments
 (0)