GithubHelp home page GithubHelp logo

Comments (2)

c4lifasecondary avatar c4lifasecondary commented on September 2, 2024

Hi, @saritvakrat can you assist plz what version of Jest you exactly use?

from jest-allure-circus.

saritvakrat avatar saritvakrat commented on September 2, 2024

@c4lifasecondary Hi, would be great to get some assitance since now we cant use for example allure.issue

jest.config.js:
testEnvironmentOptions: {
jiraUrl: 'https://hhhgital.atlassian.net/browse/',
environmentInfo: process.env.ENV_NAME,
testPath: '/tests/*'
},

Getting this error:

TypeError: Cannot read properties of null (reading 'addLink')

49 | allure.issue('GNG-181.');
| ^
50 | beforeAll(async () => {
51 | // Login in order to create an app and get sessions list
52 | headers = await authentication.getHeadersWithJSESSIONIDCookie();

  at JestAllureInterface.link (node_modules/allure-js-commons/src/Allure.ts:47:22)
  at JestAllureInterface.issue (node_modules/jest-allure-circus/src/jest-allure-interface.ts:111:8)

When adding This line to jest.setup.js : require('jest-allure-circus');

TypeError: Cannot read properties of null (reading 'addLink')

  134 | // unstable
  135 | describe.skip('Form Validation Errors - data validation', () => {
> 136 |     allure.issue('https:/15419');
      |            ^
  138 |

  at JestAllureInterface.link (node_modules/allure-js-commons/src/Allure.ts:47:22)
  at JestAllureInterface.issue (node_modules/jest-allure-circus/src/jest-allure-interface.ts:111:8)

"devDependencies": {
"@jest/globals": "^29.3.1",
"@types/jest": "^29.2.5",
"@types/node": "^18.11.18",
"typescript": "^5.2.2"
},
"dependencies": {
"jest-allure-circus": "^1.0.21",
"jest-html-reporters": "^3.1.4",
"jest-junit": "^16.0.0",
"jest-runner-groups": "^2.2.0",
"ts-jest": "^29.0.3" }

from jest-allure-circus.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.