Skip to content

Commit 9368082

Browse files
committed
test(plugin-server-session): convert to jest/TypeScript
1 parent c5c3674 commit 9368082

11 files changed

+5242
-7178
lines changed

.editorconfig

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ end_of_line = lf
88
insert_final_newline = true
99
indent_style = space
1010
indent_size = 2
11+
trim_trailing_whitespace = true

.eslintrc.js

+9-5
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@ const ruleOverrides = {
44

55
// Let TypeScript inference work without being verbose
66
'@typescript-eslint/explicit-function-return-type': 'off',
7-
7+
88
// (Explicit) any has its valid use cases
99
'@typescript-eslint/no-explicit-any': 'off',
10-
11-
// This incorrectly fails on TypeScript method override signatures
12-
'no-dupe-class-members': 'off',
10+
11+
'@typescript-eslint/no-empty-function': 'off',
1312

1413
// Disable all rules that require parserServices (for now)
1514
'@typescript-eslint/no-floating-promises': 'off',
@@ -23,6 +22,10 @@ const ruleOverrides = {
2322
'@typescript-eslint/restrict-plus-operands': 'off',
2423
'@typescript-eslint/restrict-template-expressions': 'off',
2524
'@typescript-eslint/strict-boolean-expressions': 'off',
25+
'@typescript-eslint/no-throw-literal': 'off',
26+
'@typescript-eslint/no-implied-eval': 'off',
27+
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'off',
28+
'@typescript-eslint/prefer-includes': 'off',
2629
}
2730

2831
module.exports = {
@@ -61,7 +64,8 @@ module.exports = {
6164
// Linting for tests
6265
{
6366
files: [
64-
'packages/core/**/*.test.[tj]s?(x)'
67+
'packages/core/**/*.test.[tj]s?(x)',
68+
'packages/plugin-server*/**/*.test.[tj]s?(x)'
6569
],
6670
env: {
6771
jest: true,

jest.config.js

+8-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ module.exports = {
77
testMatch: [
88
testsForPackage('core')
99
]
10-
}
11-
]
10+
},
11+
{
12+
displayName: 'node plugins',
13+
testEnvironment: 'node',
14+
testMatch: [
15+
testsForPackage('plugin-server-*')
16+
]
17+
}]
1218
}

0 commit comments

Comments
 (0)