Skip to content

Commit

Permalink
fix: include compiled files
Browse files Browse the repository at this point in the history
  • Loading branch information
noomorph committed Oct 9, 2023
1 parent 45273ea commit 64f4d19
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,13 @@ Edit your Jest config, e.g. `jest.config.js`:
```diff
/** @type {import('@jest/types').Config.InitialOptions} */
module.exports = {
// ...
reporters: [
'default',
+ 'jest-allure2-reporter',
],
// ...
reporters: [
'default',
+ 'jest-allure2-reporter',
],
// For the most of the features you'll need the custom environment:
+ testEnvironment: 'jest-allure2-reporter/environment-node',
};
```

Expand All @@ -51,15 +53,15 @@ npm test
and then view the results:

```bash
allure serve
ALLURE_NO_ANALYTICS=1 allure serve
```

![Example screenshot](docs/img/example.png)

If you need to generate a static report, e.g., on CI, run instead:

```bash
allure generate
ALLURE_NO_ANALYTICS=1 allure generate
```

Make sure you have `allure` CLI installed beforehand. For more information about it, refer to the official [Allure docs].
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,17 @@
"./package.json": "./package.json"
},
"files": [
"*.js",
"!.*.js",
"!*.config.js",
"src",
"dist",
"!**/__*__",
"!**/*.test.*"
],
"scripts": {
"prepare": "husky install",
"prepack": "tsc",
"build": "tsc",
"docs": "typedoc",
"lint": "eslint . --fix",
Expand Down

0 comments on commit 64f4d19

Please sign in to comment.