Skip to content

Commit

Permalink
Give all unique directories
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer committed Dec 11, 2019
1 parent 74a2e3f commit 871ecb8
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 3 deletions.
9 changes: 9 additions & 0 deletions test/integration/css/fixtures/prod-module/pages/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { redText } from './index.module.css'

export default function Home() {
return (
<div id="verify-red" className={redText}>
This text should be red.
</div>
)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.redText {
color: red;
}
6 changes: 3 additions & 3 deletions test/integration/css/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ describe('CSS Support', () => {
})

describe('Basic CSS Module Support', () => {
const appDir = join(fixturesDir, 'single-module')
const appDir = join(fixturesDir, 'basic-module')

beforeAll(async () => {
await remove(join(appDir, '.next'))
Expand Down Expand Up @@ -858,7 +858,7 @@ describe('CSS Support', () => {
})

describe('Has CSS Module in computed styles in Development', () => {
const appDir = join(fixturesDir, 'single-module')
const appDir = join(fixturesDir, 'dev-module')

beforeAll(async () => {
await remove(join(appDir, '.next'))
Expand Down Expand Up @@ -892,7 +892,7 @@ describe('CSS Support', () => {
})

describe('Has CSS Module in computed styles in Production', () => {
const appDir = join(fixturesDir, 'single-module-copy')
const appDir = join(fixturesDir, 'prod-module')

beforeAll(async () => {
await remove(join(appDir, '.next'))
Expand Down

0 comments on commit 871ecb8

Please sign in to comment.