Skip to content

Commit

Permalink
refactor(betterer 🔧): try to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
phenomnomnominal committed Sep 8, 2024
1 parent 3a0f3c4 commit 0768457
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 9 deletions.
3 changes: 2 additions & 1 deletion test/cli/precommit-specific-file.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ debugger;
`,
'./src/existing-file-2.ts': `
debugger;
`
`,
'./src/new-file.ts': ''
});

const fixturePath = paths.cwd;
Expand Down
3 changes: 2 additions & 1 deletion test/eslint-complex-rule.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ module.exports = {
"extends": "../../tsconfig.json",
"include": ["./src/**/*", ".betterer.js", "./.eslintrc.js"]
}
`
`,
'./src/index.ts': ''
});

const configPaths = [paths.config];
Expand Down
3 changes: 2 additions & 1 deletion test/eslint.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ module.exports = {
"extends": "../../tsconfig.json",
"include": ["./src/**/*", "./.betterer.js", "./.eslintrc.js"]
}
`
`,
'./src/index.ts': ''
});

const configPaths = [paths.config];
Expand Down
3 changes: 2 additions & 1 deletion test/file-test-constraint.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ module.exports = {
"extends": "../../tsconfig.json",
"include": ["./src/**/*", "./.betterer.js", "./.eslintrc.js"]
}
`
`,
'./src/index.ts': ''
}
);

Expand Down
3 changes: 2 additions & 1 deletion test/file-test-goal.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ module.exports = {
"extends": "../../tsconfig.json",
"include": ["./src/**/*", "./.betterer.js", "./.eslintrc.js"]
}
`
`,
'./src/index.ts': ''
});

const configPaths = [paths.config];
Expand Down
3 changes: 2 additions & 1 deletion test/file-test-sort-absolute.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ module.exports = {
"extends": "../../tsconfig.json",
"include": ["./src/**/*", "./.betterer.js", "./.eslintrc.js"]
}
`
`,
'./src/index.ts': ''
}
);

Expand Down
3 changes: 2 additions & 1 deletion test/file-test-sort-all.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ module.exports = {
"extends": "../../tsconfig.json",
"include": ["./src/**/*", "./.betterer.js", "./.eslintrc.js"]
}
`
`,
'./src/index.ts': ''
}
);

Expand Down
3 changes: 2 additions & 1 deletion test/file-test-sort-subset.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ module.exports = {
"extends": "../../tsconfig.json",
"include": ["./src/**/*", "./.betterer.js", "./.eslintrc.js"]
}
`
`,
'./src/index.ts': ''
}
);

Expand Down
2 changes: 1 addition & 1 deletion test/runner/runner-included.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { eslint } from '@betterer/eslint';
export default {
test: () => eslint({ 'no-debugger': 'error' }).include('./src/**/*.ts')
};
};
`,
'.eslintrc.cjs': `
const path = require('node:path');
Expand Down

0 comments on commit 0768457

Please sign in to comment.