Skip to content

Commit

Permalink
refactor(tests): move with-tailwind to e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
kwonoj committed Sep 8, 2023
1 parent 0632b50 commit 0892aba
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,21 @@
import { createNext, FileRef } from 'e2e-utils'
import webdriver from 'next-webdriver'
import { join } from 'path'

const fixturesDir = join(__dirname, '../..', 'css-fixtures')
import type { NextInstance } from 'test/lib/next-modes/base'

//[NOTE]: This test is migrated from next-dev integration tests for turbopack,
//Extracted into a single test file so we can put this in blocking tests for turbopack (turbopack-tests-manifests.js)
describe('Render css with tailwind', () => {
const appDir = join(fixturesDir, 'with-tailwindcss')

let next
let next: NextInstance
beforeAll(async () => {
next = await createNext({
files: {
pages: new FileRef(join(appDir, 'pages')),
styles: new FileRef(join(appDir, 'styles')),
'postcss.config.js': new FileRef(join(appDir, 'postcss.config.js')),
'tailwind.config.js': new FileRef(join(appDir, 'tailwind.config.js')),
pages: new FileRef(join(__dirname, 'pages')),
styles: new FileRef(join(__dirname, 'styles')),
'postcss.config.js': new FileRef(join(__dirname, 'postcss.config.js')),
'tailwind.config.js': new FileRef(
join(__dirname, 'tailwind.config.js')
),
},
dependencies: {
postcss: '^8.4.29',
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 0 additions & 7 deletions test/integration/css-fixtures/with-tailwindcss/package.json

This file was deleted.

0 comments on commit 0892aba

Please sign in to comment.