Skip to content

Commit 1ec3c99

Browse files
committed
🐛 fix tests
1 parent 55df452 commit 1ec3c99

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

src/test/.vscode/settings.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,5 @@
2222
"python.linting.pylamaEnabled": false,
2323
"python.linting.mypyEnabled": false,
2424
"python.formatting.provider": "yapf",
25-
"python.pythonPath": "python",
2625
"python.linting.pylintUseMinimalCheckers": false
2726
}

src/test/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ const options: MochaSetupOptions & { retries: number } = {
1818
ui: 'tdd',
1919
useColors: true,
2020
timeout: 25000,
21-
retries: 3
21+
retries: 3,
22+
grep: 'Linting'
2223
};
2324
testRunner.configure(options, { coverageConfig: '../coverconfig.json' });
2425
module.exports = testRunner;

src/test/linters/lint.multiroot.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ suite('Multiroot Linting', () => {
3636

3737
function initializeDI() {
3838
ioc = new UnitTestIocContainer();
39-
ioc.registerCommonTypes();
39+
ioc.registerCommonTypes(false);
4040
ioc.registerProcessTypes();
4141
ioc.registerLinterTypes();
4242
ioc.registerVariableTypes();

src/test/linters/lint.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ suite('Linting', () => {
114114

115115
function initializeDI() {
116116
ioc = new UnitTestIocContainer();
117-
ioc.registerCommonTypes();
117+
ioc.registerCommonTypes(false);
118118
ioc.registerProcessTypes();
119119
ioc.registerLinterTypes();
120120
ioc.registerVariableTypes();

src/test/serviceRegistry.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,11 @@ export class IocContainer {
6565
this.disposables.forEach(disposable => disposable.dispose());
6666
}
6767

68-
public registerCommonTypes() {
68+
public registerCommonTypes(registerFileSystem: boolean = true) {
6969
commonRegisterTypes(this.serviceManager);
70-
this.registerFileSystemTypes();
70+
if (registerFileSystem) {
71+
this.registerFileSystemTypes();
72+
}
7173
}
7274
public registerFileSystemTypes() {
7375
this.serviceManager.addSingleton<IPlatformService>(IPlatformService, PlatformService);

0 commit comments

Comments
 (0)