-
Notifications
You must be signed in to change notification settings - Fork 27.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
'use client' | ||
|
||
export default function Page() { | ||
return ( | ||
<> | ||
<div></div> | ||
</> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* Correct syntax: input::placeholder */ | ||
input:placeholder { | ||
color: red; | ||
} | ||
|
||
.rowContainer { | ||
&.header { | ||
/* Correct syntax: &.darktheme */ | ||
&:darktheme { | ||
border-bottom-color: var(--accents-2); | ||
} | ||
} | ||
|
||
/* Correct syntax: &.global(.dark-theme) */ | ||
&:global(.dark-theme) & { | ||
background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.5) 100%); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
'use client' | ||
|
||
import './global.css' | ||
|
||
export default function Layout({ children }) { | ||
return <>{children}</> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { nextTestSetup } from 'e2e-utils' | ||
import { getRedboxSource } from 'next-test-utils' | ||
|
||
describe('app dir - css', () => { | ||
const { next, skipped } = nextTestSetup({ | ||
files: __dirname, | ||
skipDeployment: true, | ||
dependencies: { | ||
sass: 'latest', | ||
}, | ||
}) | ||
|
||
if (skipped) { | ||
return | ||
} | ||
|
||
describe('css support', () => { | ||
// css-loader does not report an error for this case | ||
;(process.env.TURBOPACK ? describe : describe.skip)( | ||
'error handling', | ||
() => { | ||
it('should report human-readable error message for css', async () => { | ||
const browser = await next.browser('/css-error') | ||
|
||
const source = await getRedboxSource(browser) | ||
|
||
expect(source).toMatchInlineSnapshot() | ||
}) | ||
} | ||
) | ||
}) | ||
}) |