8000 [FSSDK-10579] replace Jest with Vitest (#944) · optimizely/javascript-sdk@093c3ca · GitHub
[go: up one dir, main page]

Skip to content

Commit 093c3ca

Browse files
authored
[FSSDK-10579] replace Jest with Vitest (#944)
1 parent a0774ef commit 093c3ca

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+4032
-13671
lines changed

.devcontainer/devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"esbenp.prettier-vscode",
1313
"Gruntfuggly.todo-tree",
1414
"github.vscode-github-actions",
15-
"Orta.vscode-jest",
16-
"ms-vscode.test-adapter-converter"
15+
"ms-vscode.test-adapter-converter",
16+
"vitest.explorer"
1717
]
1818
}
1919
}

.github/workflows/javascript.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
runs-on: ubuntu-latest
6464
strategy:
6565
matrix:
66-
node: ['14', '16', '18', '20']
66+
node: ['16', '18', '20', '22']
6767
steps:
6868
- uses: actions/checkout@v3
6969
- name: Set up Node ${{ matrix.node }}

.vscode/settings.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
{
2-
"jest.rootPath": "/workspaces/javascript-sdk/packages/optimizely-sdk",
3-
"jest.jestCommandLine": "./node_modules/.bin/jest",
4-
"jest.autoRevealOutput": "on-exec-error",
52
"editor.tabSize": 2
6-
}
3+
}

jest.config.js

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

lib/modules/datafile-manager/httpPollingDatafileManager.ts

Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ export default abstract class HttpPollingDatafileManager implements DatafileMana
115115
urlTemplate = DEFAULT_URL_TEMPLATE,
116116
cache = noOpKeyValueCache,
117117
} = configWithDefaultsApplied;
118-
119118
this.cache = cache;
120119
this.cacheKey = 'opt-datafile-' + sdkKey;
121120
this.sdkKey = sdkKey;