Skip to content

Commit a3a0539

Browse files
committed
Update timeout
1 parent 86a5850 commit a3a0539

File tree

1 file changed

+31
-27
lines changed

1 file changed

+31
-27
lines changed

packages/@tailwindcss-upgrade/src/codemods/css/migrate-at-apply.test.ts

Lines changed: 31 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -85,35 +85,39 @@ it('should move the legacy `!` prefix, to the new `!` postfix notation', async (
8585
`)
8686
})
8787

88-
it('should apply all candidate migration when migrating with a config', async () => {
89-
async function migrateWithPrefix(input: string) {
90-
return postcss()
91-
.use(
92-
migrateAtApply({
93-
designSystem: await __unstable__loadDesignSystem(
94-
css`
95-
@import 'tailwindcss' prefix(tw);
96-
`,
97-
{ base: __dirname },
98-
),
99-
userConfig: {
100-
prefix: 'tw_',
101-
},
102-
}),
103-
)
104-
.process(input, { from: expect.getState().testPath })
105-
.then((result) => result.css)
106-
}
88+
it(
89+
'should apply all candidate migration when migrating with a config',
90+
{ timeout: 10_000 },
91+
async () => {
92+
async function migrateWithPrefix(input: string) {
93+
return postcss()
94+
.use(
95+
migrateAtApply({
96+
designSystem: await __unstable__loadDesignSystem(
97+
css`
98+
@import 'tailwindcss' prefix(tw);
99+
`,
100+
{ base: __dirname },
101+
),
102+
userConfig: {
103+
prefix: 'tw_',
104+
},
105+
}),
106+
)
107+
.process(input, { from: expect.getState().testPath })
108+
.then((result) => result.css)
109+
}
107110

108-
expect(
109-
await migrateWithPrefix(css`
110-
.foo {
111-
@apply !tw_flex [color:--my-color] tw_bg-gradient-to-t;
112-
}
113-
`),
114-
).toMatchInlineSnapshot(`
111+
expect(
112+
await migrateWithPrefix(css`
113+
.foo {
114+
@apply !tw_flex [color:--my-color] tw_bg-gradient-to-t;
115+
}
116+
`),
117+
).toMatchInlineSnapshot(`
115118
".foo {
116119
@apply tw:flex! tw:text-(--my-color) tw:bg-linear-to-t;
117120
}"
118121
`)
119-
})
122+
},
123+
)

0 commit comments

Comments
 (0)