Skip to content

Commit

Permalink
Fix migration test (#124)
Browse files Browse the repository at this point in the history
cleanup
  • Loading branch information
blink1073 committed Sep 5, 2023
1 parent 0617c6a commit 067fccb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 18 deletions.
3 changes: 1 addition & 2 deletions tests/data/npm_builder/myextension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@
"watch:labextension": "jupyter labextension watch ."
},
"dependencies": {
"@jupyterlab/application": "^3.1.0",
"@jupyterlab/settingregistry": "^3.1.0"
"@jupyterlab/application": "^3.1.0"
},
"devDependencies": {
"@jupyterlab/builder": "^3.1.0",
Expand Down
17 changes: 1 addition & 16 deletions tests/data/npm_builder/myextension/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,16 @@ import {
JupyterFrontEndPlugin
} from '@jupyterlab/application';

import { ISettingRegistry } from '@jupyterlab/settingregistry';

/**
* Initialization data for the myextension extension.
*/
const plugin: JupyterFrontEndPlugin<void> = {
id: 'myextension:plugin',
autoStart: true,
optional: [ISettingRegistry],
activate: (
app: JupyterFrontEnd,
settingRegistry: ISettingRegistry | null
app: JupyterFrontEnd
) => {
console.log('JupyterLab extension myextension is activated!');

if (settingRegistry) {
settingRegistry
.load(plugin.id)
.then(settings => {
console.log('myextension settings loaded:', settings.composite);
})
.catch(reason => {
console.error('Failed to load settings for myextension.', reason);
});
}
}
};

Expand Down
1 change: 1 addition & 0 deletions tests/data/npm_builder/myextension/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"resolveJsonModule": true,
"outDir": "lib",
"rootDir": "src",
"skipLibCheck": true,
"strict": true,
"strictNullChecks": true,
"target": "es2018",
Expand Down

0 comments on commit 067fccb

Please sign in to comment.