Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
testContainer.bind(FileSystemPreferences).toDynamicValue(ctx => {
const preferences = ctx.container.get(PreferenceService);
return createFileSystemPreferences(preferences);
}).inSingletonScope();
testContainer.bind(FileSystemPreferences).toDynamicValue(ctx => {
const preferences = ctx.container.get(PreferenceService);
sinon.stub(preferences, 'get').returns({
'files.watcherExclude': {
'**/.git/objects/**': true,
'**/.git/subtree-cache/**': true,
'**/node_modules/**': true
}
});
return createFileSystemPreferences(preferences);
}).inSingletonScope();