From 63d5d8b7ca1b0c65c9a08beaf193ed1a4f19a6df Mon Sep 17 00:00:00 2001 From: Hugo Alliaume Date: Sun, 7 Apr 2019 13:19:09 +0200 Subject: [PATCH] Add tests for styles when using Vue + JSX --- test/functional.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/functional.js b/test/functional.js index 7f0be3f1..078b2b32 100644 --- a/test/functional.js +++ b/test/functional.js @@ -1490,6 +1490,18 @@ module.exports = { 'class TestClassSyntax' ); + // test that global styles are working correctly + webpackAssert.assertOutputFileContains( + 'main.css', + '#app {' + ); + + // test that CSS Modules (for scoped styles) is used + webpackAssert.assertOutputFileContains( + 'main.css', + '.h1_' // `.h1` is transformed to `.h1_[a-zA-Z0-9]` + ); + testSetup.requestTestPage( path.join(config.getContext(), 'www'), [