Closed saritvakrat closed 1 year ago
Test env should be jest-allure-circus
. Docs is wrong. Look up to my jest config as example in package.json
{
"jest": {
"moduleFileExtensions": [
"ts",
"js"
],
"resetMocks": true,
"rootDir": "./",
"roots": [
"<rootDir>/src",
"<rootDir>/test"
],
"setupFilesAfterEnv": [
"jest-extended/all",
"./src/main.ts"
],
"testEnvironment": "jest-allure-circus",
"testEnvironmentOptions": {
"jiraUrl": "https://jira.example.com/browse/",
"tmsUrl": "https://allure.example.com/project/1/test-cases/"
},
"testRegex": ".*\\.spec\\.ts$",
"testTimeout": 120000,
"transform": {
"^.+\\.ts$": "ts-jest"
}
}
}
Fixed. Will be added to 1.0.22.
when 1.0.22 planning to release? thanks
Works after change thanks
Describe the bug
Using Jest 29- after configuring allure: Test environment jest-circus-allure cannot be found. Make sure the testEnvironment configuration option points to an existing node module
To Reproduce configure:
Actual behavior
Jest throws and error ` Validation Error:
Test environment jest-circus-allure cannot be found. Make sure the testEnvironment configuration option points to an existing node module.
Configuration Documentation: https://jestjs.io/docs/configuration`
Expected behavior
You can run tests and allure without issues
Screenshots
Jest version: "ts-jest": "^29.0.3" allure version: "jest-allure-circus": "^1.0.21",