Skip to content

Commit

Permalink
Merge 4a5c1fb into 9c6d313
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfirst authored May 29, 2020
2 parents 9c6d313 + 4a5c1fb commit 2c0f395
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,17 @@ require('resolve-dependency-path');
require('sass-lookup');
require('app-module-path');
require('module-definition');
require('module-lookup-amd');
try {
require('module-lookup-amd');
} catch (err) {
console.log(`mocha suppresses the error, so console.error is needed to show the error on the screen.
the problem is with module-lookup-amd that calls requirejs package, which requires a file r.js, which is an invalid js file.
the error occurs on some specific node versions, such as v12.16.3.
if you get the error, please change your node version. (e.g. v12.7.0 is fine).
`);
console.error(err);
throw err;
}

describe('filing-cabinet', () => {
describe('JavaScript', () => {
Expand Down

0 comments on commit 2c0f395

Please sign in to comment.