Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix sass test
  • Loading branch information
ianschmitz committed May 4, 2020
commit dfa1f89dd5f059565234ac61c62855260e4a50bf
Original file line number Diff line number Diff line change
Expand Up @@ -156,21 +156,6 @@ Failed to compile.
Attempted import error: 'bar' is not exported from './AppUnknownExport'.


",
"stdout": "",
}
`;

exports[`helps when users tries to use sass 1`] = `
Object {
"stderr": "Creating an optimized production build...
Failed to compile.

./src/AppSass.scss
To import Sass files, you first need to install node-sass.
Run \`npm install node-sass\` or \`yarn add node-sass\` inside your workspace.


",
"stdout": "",
}
Expand Down
6 changes: 5 additions & 1 deletion test/fixtures/webpack-message-formatting/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@ test('helps when users tries to use sass', async () => {
);

const { stdout, stderr } = await testSetup.scripts.build();
expect({ stdout, stderr }).toMatchSnapshot();
expect(stdout).toBeFalsy();
// TODO: Snapshots differ between Node 10/12 as the call stack log output has changed.
expect(stderr).toContain(
'To import Sass files, you first need to install node-sass.'
);
});

test('formats file not found error', async () => {
Expand Down