This converts all pure tests to Jest. This was done by first running `npx jest-codemods` with the Mocha transformation, then manually fixing any places where it hadn't automatically converted the correct thing or had missed things (mostly Sinon). This also sets up VSCode correctly for running Jest.
54 lines
1.7 KiB
JSON
54 lines
1.7 KiB
JSON
// Place your settings in this file to overwrite default and user settings.
|
|
{
|
|
"files.exclude": {
|
|
"**/out": true, // set this to true to hide the "out" folder with the compiled JS files
|
|
"**/dist": true,
|
|
"**/node_modules": true,
|
|
"common/temp": true,
|
|
"**/.vscode-test": true
|
|
},
|
|
"files.watcherExclude": {
|
|
"**/.git/**": true,
|
|
"**/out": true,
|
|
"**/dist": true,
|
|
"**/node_modules": true,
|
|
"common/temp": true,
|
|
"**/.vscode-test": true
|
|
},
|
|
"search.exclude": {
|
|
"**/out": true, // set this to false to include "out" folder in search results
|
|
"**/dist": true,
|
|
"**/node_modules": true,
|
|
"common/temp": true,
|
|
"**/.vscode-test": true
|
|
},
|
|
"typescript.tsdk": "./extensions/ql-vscode/node_modules/typescript/lib", // we want to use the TS server from our node_modules folder to control its version
|
|
"typescript.enablePromptUseWorkspaceTsdk": true,
|
|
"eslint.validate": [
|
|
"javascript",
|
|
"javascriptreact",
|
|
"typescript",
|
|
"typescriptreact"
|
|
],
|
|
// This is necessary to ensure that ESLint can find the correct configuration files and plugins.
|
|
"eslint.workingDirectories": ["./extensions/ql-vscode"],
|
|
"editor.formatOnSave": false,
|
|
"typescript.preferences.quoteStyle": "single",
|
|
"javascript.preferences.quoteStyle": "single",
|
|
"editor.wordWrapColumn": 100,
|
|
"jest.rootPath": "./extensions/ql-vscode",
|
|
"jest.autoRun": "watch",
|
|
"jest.nodeEnv": {
|
|
"LANG": "en-US",
|
|
"TZ": "UTC"
|
|
},
|
|
"[typescript]": {
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
"editor.formatOnSave": true,
|
|
},
|
|
"[typescriptreact]": {
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
"editor.formatOnSave": true,
|
|
},
|
|
}
|