Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Commit

Permalink
ci(test): fix test path when running on circle
Browse files Browse the repository at this point in the history
  • Loading branch information
shellscape committed Apr 9, 2018
1 parent c525d3e commit 035373b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/options/useRelativePath.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,12 @@ describe('Options', () => {

const stats = await webpack('nested/fixture.js', config);
const [module] = stats.toJson().modules;
const { assets, source } = module;
let { assets, source } = module;

if (process.env.CIRCLECI) {
assets = [assets[0].replace('file-loader', 'project')];
source = source.replace('file-loader', 'project');
}

expect({ assets, source }).toMatchSnapshot();
});
Expand Down

0 comments on commit 035373b

Please sign in to comment.