Skip to content

Commit

Permalink
test: uncomment test (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
evilebottnawi committed Sep 22, 2020
1 parent 5d78e9c commit a88af56
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 15 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -78,7 +78,7 @@
"standard-version": "^9.0.0",
"style-loader": "^1.2.1",
"stylus": "^0.54.8",
"webpack": "^4.44.1"
"webpack": "^4.44.2"
},
"keywords": [
"webpack",
Expand Down
22 changes: 22 additions & 0 deletions test/__snapshots__/loader.test.js.snap
Expand Up @@ -480,6 +480,28 @@ exports[`loader should work "use" option: errors 1`] = `Array []`;
exports[`loader should work "use" option: warnings 1`] = `Array []`;
exports[`loader should work indented import: css 1`] = `
"body {
color: #f00;
}
.some-class body {
font: 12px Helvetica, Arial, sans-serif;
}
.some-class a.button {
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}
.webpack-import .not-real-nib {
color: #000;
}
"
`;
exports[`loader should work indented import: errors 1`] = `Array []`;
exports[`loader should work indented import: warnings 1`] = `Array []`;
exports[`loader should work when stylusOptions is function: css 1`] = `
"body {
width: 100%;
Expand Down
12 changes: 1 addition & 11 deletions test/loader.test.js
Expand Up @@ -206,7 +206,7 @@ describe('loader', () => {
expect(getErrors(stats)).toMatchSnapshot('errors');
});

it.skip('should work indented import', async () => {
it('should work indented import', async () => {
const testId = './shallow-indent.styl';
const compiler = getCompiler(testId);
const stats = await compile(compiler);
Expand All @@ -223,11 +223,6 @@ describe('loader', () => {
path.resolve(fixturesDir, 'shallow-indent.styl'),
];

/*
* Todo for webpack@5
* when ...node_modules/stylus/lib/functions/index.styl breaks fileDependencies
* */

fixtures.forEach((fixture) => {
expect(fileDependencies.has(fixture)).toBe(true);
});
Expand All @@ -253,11 +248,6 @@ describe('loader', () => {
path.resolve(fixturesDir, 'import-binop.styl'),
];

/*
* Todo for webpack@5
* when ...node_modules/stylus/lib/functions/index.styl breaks fileDependencies
* */

fixtures.forEach((fixture) => {
expect(fileDependencies.has(fixture)).toBe(true);
});
Expand Down

0 comments on commit a88af56

Please sign in to comment.