Skip to content

Commit

Permalink
apply eslint to test folder
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkhala committed Feb 2, 2023
1 parent 1d8a525 commit b823c35
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 16 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
],
"parserOptions": {
"project": [
"./tsconfig.json"
"./tsconfig.json",
"./test.tsconfig.json"
]
},
"root": true,
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion test/index.ts → __tests__/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
describe(':for typescript', function () {
it('', async () => {

});
});
3 changes: 1 addition & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
module.exports = {
preset: 'ts-jest',
testRegex: "test/*"
}
};
5 changes: 5 additions & 0 deletions test.tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"include": [
"__tests__/"
]
}
23 changes: 11 additions & 12 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
"esModuleInterop": true,
"outDir": "dist",
"target": "ESNext",
"moduleResolution": "NodeNext"
},
"include": [
"src/"
]
}

"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
"esModuleInterop": true,
"outDir": "dist",
"target": "ESNext",
"moduleResolution": "NodeNext"
},
"include": [
"src/"
]
}

0 comments on commit b823c35

Please sign in to comment.