Skip to content

Commit b9ef84e

Browse files
committed
Merge branch 'master' of github.com:krausest/js-framework-benchmark
2 parents 862990a + a7a9056 commit b9ef84e

File tree

8 files changed

+1013
-768
lines changed

8 files changed

+1013
-768
lines changed

webdriver-ts/.eslintrc.cjs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/* eslint-env node */
2+
module.exports = {
3+
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
4+
plugins: ["@typescript-eslint"],
5+
parser: "@typescript-eslint/parser",
6+
parserOptions: {
7+
tsconfigRootDir: __dirname,
8+
project: ["./tsconfig.eslint.json"],
9+
},
10+
root: true,
11+
rules: {
12+
"prefer-const": "off",
13+
"@typescript-eslint/no-explicit-any": "off",
14+
"@typescript-eslint/no-unused-vars": "off",
15+
"require-await": "error",
16+
"@typescript-eslint/no-floating-promises": "error",
17+
},
18+
};

webdriver-ts/.eslintrc.json

Lines changed: 0 additions & 22 deletions
This file was deleted.

webdriver-ts/jest.config.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/** @type {import('ts-jest').JestConfigWithTsJest} */
2+
export default {
3+
modulePathIgnorePatterns: ["<rootDir>/dist/"],
4+
clearMocks: true,
5+
coverageProvider: "v8",
6+
// Need for mapping imported .js as .ts. Required due to moduleResolution: "NodeNext" in tsconfig.json.
7+
extensionsToTreatAsEsm: [".ts"],
8+
moduleNameMapper: {
9+
"^(\\.{1,2}/.*)\\.js$": "$1",
10+
},
11+
transform: {
12+
"^.+\\.tsx?$": [
13+
"ts-jest",
14+
{
15+
isolatedModules: true,
16+
useESM: true,
17+
},
18+
],
19+
},
20+
};

webdriver-ts/jest.config.ts

Lines changed: 0 additions & 195 deletions
This file was deleted.

0 commit comments

Comments
 (0)