Configuring Protractor with WebStorm
Date : March 29 2020, 07:55 AM
it fixes the issue WebStorm provides no support for protractor (if you miss it, please vote for WEB-9236). But you can use Node.js Run configuration to run it. It would looks as follows: JavaScript file: path/to/protractor
Application parameters: [options] protractor.conf.js
|
WebStorm. Run Jest in watch mode
Date : March 29 2020, 07:55 AM
|
WebStorm hints me the TS error (TS2705) when I use jest(ts-jest async/await test)
Date : March 29 2020, 07:55 AM
To fix the issue you can do If TypeScript Service is enabled in Preferences | Languages & Frameworks | TypeScript, it uses the nearest tsconfig.json current file is included in, scanning folders from the file dir up to the project root. If no tsconfig.*.json files current file is included in are found, default configuration is used for file linting. Please note the "include" section in your root tsconfig.json: "include":[
"./app/**/*.ts",
"./config/**/*.ts",
"./app.ts",
"./preload.ts"
],
|
How to update all/several snapshot in WebStorm 2019 (jest)
Date : March 29 2020, 07:55 AM
Any of those help Not currently possible. Please vote for WEB-33822 to be notified on any progress with this feature
|
Jest Unit Tests do not work started with WebStorm Jest Testrunner
Tag : angular , By : Robert Daniel Pickar
Date : January 12 2021, 07:00 PM
seems to work fine Please try a workaround from https://github.com/nrwl/nx/pull/1467#issuecomment-506973401: Add the following jest config to the package.json and adjust where necessary: "jest": {
"preset": "jest-preset-angular",
"setupFilesAfterEnv": [
"<rootDir>/apps/nx-jest-example/src/test-setup.ts"
],
"testPathIgnorePatterns": [
"<rootDir>/node_modules/",
"<rootDir>/dist/",
"<rootDir>/src/test.ts",
"<rootDir>/apps/nx-jest-example-e2e/"
],
"globals": {
"ts-jest": {
"diagnostics": false,
"tsConfig": "<rootDir>/apps/nx-jest-example/tsconfig.spec.json",
"stringifyContentPathRegex": "\\.html$",
"astTransformers": [
"<rootDir>/node_modules/jest-preset-angular/InlineHtmlStripStylesTransformer"
]
}
}
}
|