forked from jupyter-server/jupyter-scheduler
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to JupyterLab 4 (jupyter-server#402)
* remove unused dependency * upgrade dependencies to JL4 * fix type errors * add dev-install script * update yarn.lock * bump JL version in build and workflows * pre-commit * fix lint * fix yarn.lock checksums * bump ts-jest to v29 * upgrade to jest 29, typescript 4.3.0 * pull in required JupyterLab 4 test configuration * upgrade to React 18 to be compatible w/ JL4 * fix Build/test-isolated job * bump @jupyterlab/galata to latest, regenerate yarn.lock * try not deleting node * hardcode labextension name to fix Build/test_isolated job * call playwright directly via node to fix Build/integration-tests * use new JL4 galata config * fix and simplify E2E tests * remove outdated snapshots * add test:update script * add workflow_dispatch trigger to choose workflow branch * use jlpm when updating E2E snapshots * Update Playwright Snapshots --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
73ee948
commit d423ede
Showing
30 changed files
with
16,513 additions
and
13,568 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# these configuration fields are only read by yarn 3 (JL4+) | ||
nodeLinker: 'node-modules' | ||
enableImmutableInstalls: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,28 @@ | ||
const jestJupyterLab = require('@jupyterlab/testutils/lib/jest-config'); | ||
|
||
const esModules = [ | ||
'@codemirror', | ||
'@jupyter/ydoc', | ||
'@jupyterlab/', | ||
'lib0', | ||
'y\\-protocols', | ||
'y\\-websocket', | ||
'nanoid', | ||
'vscode-ws-jsonrpc', | ||
'y-protocols', | ||
'y-websocket', | ||
'yjs' | ||
].join('|'); | ||
|
||
const jlabConfig = jestJupyterLab(__dirname); | ||
|
||
const { | ||
moduleFileExtensions, | ||
moduleNameMapper, | ||
preset, | ||
setupFilesAfterEnv, | ||
setupFiles, | ||
testPathIgnorePatterns, | ||
transform | ||
} = jlabConfig; | ||
const baseConfig = jestJupyterLab(__dirname); | ||
|
||
module.exports = { | ||
moduleFileExtensions, | ||
moduleNameMapper, | ||
preset, | ||
setupFilesAfterEnv, | ||
setupFiles, | ||
testPathIgnorePatterns, | ||
transform, | ||
...baseConfig, | ||
automock: false, | ||
collectCoverageFrom: ['src/**/*.{ts,tsx}', '!src/**/*.d.ts'], | ||
coverageDirectory: 'coverage', | ||
collectCoverageFrom: [ | ||
'src/**/*.{ts,tsx}', | ||
'!src/**/*.d.ts', | ||
'!src/**/.ipynb_checkpoints/*' | ||
], | ||
coverageReporters: ['lcov', 'text'], | ||
globals: { | ||
'ts-jest': { | ||
tsconfig: 'tsconfig.json' | ||
} | ||
}, | ||
testRegex: 'src/.*/.*.spec.ts[x]?$', | ||
transformIgnorePatterns: [`/node_modules/(?!${esModules}).+`] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "./tsconfig" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# these configuration fields are only read by yarn 3 (JL4+) | ||
nodeLinker: 'node-modules' | ||
enableImmutableInstalls: false |
Oops, something went wrong.