Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
ImportLoaders setting has been changed in react-scripts 3.3.1 (facebook/create-react-app#8281)
  • Loading branch information
Sarhan committed Jan 31, 2020
1 parent 0fd82b0 commit 62a8b82
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/craco-less.dev.test.js
Expand Up @@ -52,7 +52,7 @@ test("the webpack config is modified correctly without any options", () => {

expect(lessRule.use[1].loader).toContain(`${path.sep}css-loader`);
expect(lessRule.use[1].options).toEqual({
importLoaders: 2,
importLoaders: 3,
sourceMap: false
});

Expand Down Expand Up @@ -107,7 +107,7 @@ test("the webpack config is modified correctly without any options on Windows",

expect(lessRule.use[1].loader).toContain("\\css-loader");
expect(lessRule.use[1].options).toEqual({
importLoaders: 2,
importLoaders: 3,
sourceMap: false
});

Expand Down Expand Up @@ -207,7 +207,7 @@ test("the webpack config is modified correctly with all loader options", () => {
expect(lessRule.use[1].loader).toContain(`${path.sep}css-loader`);
expect(lessRule.use[1].options).toEqual({
modules: true,
importLoaders: 2,
importLoaders: 3,
localIdentName: "[local]_[hash:base64:5]",
sourceMap: false
});
Expand Down
6 changes: 3 additions & 3 deletions lib/craco-less.prod.test.js
Expand Up @@ -54,7 +54,7 @@ test("the webpack config is modified correctly without any options", () => {

expect(lessRule.use[1].loader).toContain(`${path.sep}css-loader`);
expect(lessRule.use[1].options).toEqual({
importLoaders: 2,
importLoaders: 3,
sourceMap: true
});

Expand Down Expand Up @@ -111,7 +111,7 @@ test("the webpack config is modified correctly without any options on Windows",

expect(lessRule.use[1].loader).toContain("\\css-loader");
expect(lessRule.use[1].options).toEqual({
importLoaders: 2,
importLoaders: 3,
sourceMap: true
});

Expand Down Expand Up @@ -214,7 +214,7 @@ test("the webpack config is modified correctly with all loader options", () => {
expect(lessRule.use[1].loader).toContain(`${path.sep}css-loader`);
expect(lessRule.use[1].options).toEqual({
modules: true,
importLoaders: 2,
importLoaders: 3,
localIdentName: "[local]_[hash:base64:5]",
sourceMap: true
});
Expand Down

0 comments on commit 62a8b82

Please sign in to comment.