Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allure is undefined during mocha runtime #496

Closed
jee-lee opened this issue Sep 7, 2022 · 2 comments
Closed

allure is undefined during mocha runtime #496

jee-lee opened this issue Sep 7, 2022 · 2 comments
Assignees
Labels
theme:mocha Mocha related issue type:bug Something isn't working

Comments

@jee-lee
Copy link

jee-lee commented Sep 7, 2022

Hello!
I am seeing this occurring when I try to run mocha in my es6 js project. The allure object is undefined while running mocha.
I am using node 16.13.1
mocha 9.2.0 and allure-mocha 2.0.0-beta.19

import { expect } from 'chai';
import { allure } from 'allure-mocha/runtime.js';

describe('example test suite', () => {
  it('is some test', async => {
    allure.epic('Some info');
    const someNumber = 1;
    const newNumber = someNumber + 1;
    expect(newNumber).to.equal(2)
  })
})

I've attached my example project.
example-js-allure.zip

Originally posted by @jee-lee in #50 (comment)

@epszaw epszaw self-assigned this Oct 17, 2022
@epszaw
Copy link
Member

epszaw commented Oct 17, 2022

Hello! The problem is described here #486

@epszaw epszaw added type:bug Something isn't working theme:mocha Mocha related issue labels Oct 17, 2022
@baev
Copy link
Member

baev commented Oct 19, 2022

Duplicate of #486

@baev baev marked this as a duplicate of #486 Oct 19, 2022
@baev baev closed this as completed Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme:mocha Mocha related issue type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants