Skip to content

Commit a00e9b4

Browse files
committed
update integration tests
1 parent 75cbd51 commit a00e9b4

File tree

1 file changed

+1
-28
lines changed

1 file changed

+1
-28
lines changed

integrations/upgrade/index.test.ts

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { stripVTControlCharacters } from 'node:util'
21
import { expect } from 'vitest'
32
import { candidate, css, html, js, json, test, ts } from '../utils'
43

@@ -1694,33 +1693,7 @@ test(
16941693
(e) => e.toString(),
16951694
)
16961695

1697-
output = stripVTControlCharacters(output)
1698-
.replace(/tailwindcss v(.*)/g, 'tailwindcss') // Remove the version number from the error message
1699-
.replace(/\\/g, '/') // Make Windows paths look like Unix paths
1700-
1701-
expect(output).toMatchInlineSnapshot(`
1702-
"Error: Command failed: npx @tailwindcss/upgrade --force
1703-
≈ tailwindcss
1704-
1705-
│ Searching for CSS files in the current directory and its subdirectories…
1706-
1707-
│ Linked \`./tailwind.config.ts\` to \`./src/root.1.css\`
1708-
1709-
│ Linked \`./tailwind.config.ts\` to \`./src/root.3.css\`
1710-
1711-
│ Linked \`./tailwind.config.ts\` to \`./src/root.4.css\`
1712-
1713-
│ Linked \`./tailwind.config.ts\` to \`./src/root.5/tailwind.css\`
1714-
1715-
│ You have multiple stylesheets that do not have an \`@config\`.
1716-
│ Please add a \`@config "…";\` referencing the correct Tailwind config file to:
1717-
│ - ./src/root.1.css
1718-
│ - ./src/root.3.css
1719-
│ - ./src/root.4.css
1720-
│ - ./src/root.5/tailwind.css
1721-
1722-
"
1723-
`)
1696+
expect(output).toMatch('Could not determine configuration file for:')
17241697
},
17251698
)
17261699

0 commit comments

Comments
 (0)