Skip to content

Commit

Permalink
test: make test work on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
geeksilva97 committed Nov 26, 2024
1 parent 5b0e7f6 commit 8234109
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ test('correctly reports errors when an ESM module is required with --no-experime
// const app = require('./app');
// ^

const matchRegex = /package-type-module\/require-esm-error-annotation\/index\.cjs:1[\r?\n]const app = require\('\.\/app'\);[\r?\n]\s{12}\^/;
// const matchRegex = /package-type-module\/require-esm-error-annotation\/index\.cjs:1[\r?\n]const app = require\('\.\/app'\);[\r?\n]\s{12}\^/;

Check failure on line 14 in test/parallel/test-require-esm-with-no-experimental-require-module.mjs

View workflow job for this annotation

GitHub Actions / lint-js-and-md

This line has a length of 145. Maximum allowed is 120
const matchRegex = /package-type-module[\\/]+require-esm-error-annotation[\\/]+index\.cjs:1[\r?\n]const app = require\('\.\/app'\);[\r?\n]\s{12}\^/;
const fixture = fixtures.path('es-modules/package-type-module/require-esm-error-annotation/index.cjs');
const args = ['--no-experimental-require-module', fixture];

Expand All @@ -29,7 +30,8 @@ test('correctly reports error for a longer stack trace', () => {
// require('./app.js')
// ^

const matchRegex = /package-type-module\/require-esm-error-annotation\/longer-stack\.cjs:6[\r?\n]\s{2}require\('\.\/app\.js'\)[\r?\n]\s{2}\^/;
// const matchRegex = /package-type-module\/require-esm-error-annotation\/longer-stack\.cjs:6[\r?\n]\s{2}require\('\.\/app\.js'\)[\r?\n]\s{2}\^/;

Check failure on line 33 in test/parallel/test-require-esm-with-no-experimental-require-module.mjs

View workflow job for this annotation

GitHub Actions / lint-js-and-md

This line has a length of 147. Maximum allowed is 120
const matchRegex = /package-type-module[\\/]+require-esm-error-annotation[\\/]+longer-stack\.cjs:6[\r?\n]\s{2}require\('\.\/app\.js'\)[\r?\n]\s{2}\^/;
const fixture = fixtures.path('es-modules/package-type-module/require-esm-error-annotation/longer-stack.cjs');
const args = ['--no-experimental-require-module', fixture];

Expand Down

0 comments on commit 8234109

Please sign in to comment.