Skip to content

Commit 1d476a4

Browse files
committed
Add tests for styles when using Vue + JSX
1 parent ae5f429 commit 1d476a4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/functional.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,6 +1490,18 @@ module.exports = {
14901490
'class TestClassSyntax'
14911491
);
14921492

1493+
// test that global styles are working correctly
1494+
webpackAssert.assertOutputFileContains(
1495+
'main.css',
1496+
'#app {'
1497+
);
1498+
1499+
// test that CSS Modules (for scoped styles) is used
1500+
webpackAssert.assertOutputFileContains(
1501+
'main.css',
1502+
'.h1_' // `.h1` is transformed to `.h1_[a-zA-Z0-9]`
1503+
);
1504+
14931505
testSetup.requestTestPage(
14941506
path.join(config.getContext(), 'www'),
14951507
[

0 commit comments

Comments
 (0)