Skip to content

Commit

Permalink
misc(jest): update readme (via #585)
Browse files Browse the repository at this point in the history
  • Loading branch information
epszaw authored Feb 17, 2023
1 parent 9f53f51 commit 6764c80
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/allure-jest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@ Currently we didn't have official solution for circus test runner. Consider usin
### Install dependencies

```bash
npm i -D jest-jasmine2 allure-jasmine allure-js-commons @types/jasmine
npm i -D jest-jasmine2@INSTALLED_JEST_VERSION allure-jasmine allure-js-commons @types/jasmine
```

Create `allure-setup.ts` file:

```typescript
import { JasmineAllureReporter } from "allure-jasmine";
import { JasmineAllureReporter } from "allure-jasmine";
import { JasmineAllureInterface } from "allure-jasmine/dist/src/JasmineAllureReporter";

const reporter = new JasmineAllureReporter({ resultsDir: "allure-results" });
Expand All @@ -43,6 +42,6 @@ declare global {
module.exports = {
testRunner: "jest-jasmine2",
preset: "ts-jest",
setupFilesAfterEnv: ["./spec/helpers/allure.ts"],
setupFilesAfterEnv: ["./allure-setup.ts"],
};
```

0 comments on commit 6764c80

Please sign in to comment.