We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 904ce88 commit 12b64dbCopy full SHA for 12b64db
packages/generators/__tests__/utils/styleSupport.test.ts
@@ -22,6 +22,15 @@ describe('styleSupport', () => {
22
expect(ExtractUseProps.length).toEqual(2);
23
});
24
25
+ it('generates production CSS configuration', () => {
26
+ const gen = getMockGenerator();
27
+ gen.isProd = true;
28
+ const { ExtractUseProps, regExpForStyles } = style(gen, StylingType.CSS);
29
+ expect(gen.dependencies).toEqual(['css-loader']);
30
+ expect(regExpForStyles).toEqual('/.css$/');
31
+ expect(ExtractUseProps.length).toEqual(1);
32
+ });
33
+
34
it('generates SASS configuration', () => {
35
const gen = getMockGenerator();
36
const { ExtractUseProps, regExpForStyles } = style(gen, StylingType.SASS);
0 commit comments