Skip to content

Commit

Permalink
test: remove tailwind CJS E2E test workaround
Browse files Browse the repository at this point in the history
This workaround is no longer needed since tailwinds now handles creating cjs configuration.

(cherry picked from commit 0c27bb8)
  • Loading branch information
alan-agius4 committed Jun 9, 2022
1 parent a0aeb58 commit ab09107
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tests/legacy-cli/e2e/tests/build/styles/tailwind-v3-cjs.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { expectFileToMatch, moveFile, writeFile } from '../../../utils/fs';
import { expectFileToMatch, writeFile } from '../../../utils/fs';
import { installPackage } from '../../../utils/packages';
import { ng, silentExec } from '../../../utils/process';
import { updateJsonFile } from '../../../utils/project';
Expand All @@ -20,11 +20,6 @@ export default async function () {
// Create configuration file
await silentExec('npx', 'tailwindcss', 'init');

// tailwind doesn't create the config file with a cjs extension.
// We need to rename it manually until
// https://github.com/tailwindlabs/tailwindcss/commit/6c63f67d20c433b5c7281e9e26744038ed41ccc2 is released.
await moveFile('tailwind.config.js', 'tailwind.config.cjs');

// Add Tailwind directives to a global style
await writeFile('src/styles.css', '@tailwind base; @tailwind components;');

Expand Down

0 comments on commit ab09107

Please sign in to comment.