Skip to content

Commit

Permalink
fix(runner): resolve the setup file path to import
Browse files Browse the repository at this point in the history
  • Loading branch information
PaperStrike committed Oct 27, 2023
1 parent 546517f commit 8f3be16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"node": true
},
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:@typescript-eslint/recommended-type-checked",
"airbnb-base",
"airbnb-typescript/base",
"ts-parser-service/resolver"
Expand Down
2 changes: 1 addition & 1 deletion src/server/Runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ export default class Runner implements Disposable {
importFiles.sort();

// Prepend the setup file if any
if (setupFile) importFiles.unshift(setupFile.replace(/\\/g, '\\\\'));
if (setupFile) importFiles.unshift(path.resolve(cwd, setupFile).replace(/\\/g, '/'));

if (importFiles.length === 0) {
if (watch) {
Expand Down

0 comments on commit 8f3be16

Please sign in to comment.