From 753a8a9b80c169b8e703b3753f97f511dd9cfd89 Mon Sep 17 00:00:00 2001 From: Przemyslaw Falowski Date: Fri, 29 May 2020 22:16:10 +0200 Subject: [PATCH] chore: update css module example to correctly handle related options --- examples/css-modules/rollup.config.js | 11 ++++------- examples/css-modules/src/App.vue | 2 +- test/core.e2e.ts | 6 +++--- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/examples/css-modules/rollup.config.js b/examples/css-modules/rollup.config.js index bfcfc03..5b4d9bd 100644 --- a/examples/css-modules/rollup.config.js +++ b/examples/css-modules/rollup.config.js @@ -15,16 +15,13 @@ const config = [ // Resolve packages from `node_modules` e.g. `style-inject` module // used by `rollup-plugin-postcss` to inline CSS. NodeResolve(), - VuePlugin(), - // Process only ` diff --git a/test/core.e2e.ts b/test/core.e2e.ts index bf76c26..c30d8c8 100644 --- a/test/core.e2e.ts +++ b/test/core.e2e.ts @@ -42,9 +42,9 @@ describe('css-modules', () => { expect(result.output[0].code).not.toEqual( expect.stringContaining('.red {\n color: red;\n}') ) - expect(result.output[0].code).toEqual(expect.stringContaining('._red_')) + expect(result.output[0].code).toEqual(expect.stringContaining('.red___')) expect(result.output[0].code).toEqual( - expect.stringContaining('{"red":"_red_') + expect.stringContaining('{"red":"red___') ) }) @@ -53,7 +53,7 @@ describe('css-modules', () => { expect.stringContaining('.__scopeId = "data-v-') ) expect(result.output[0].code).not.toEqual( - expect.stringContaining('.green {\n color: red;\n}') + expect.stringContaining('.green {\n color: green;\n}') ) expect(result.output[0].code).toEqual( expect.stringContaining('.green[data-v-')