From 64f4d19d864f00a8495c005d524438d09614eba2 Mon Sep 17 00:00:00 2001 From: Yaroslav Serhieiev Date: Mon, 9 Oct 2023 14:56:15 +0300 Subject: [PATCH] fix: include compiled files --- README.md | 16 +++++++++------- package.json | 4 ++++ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 732c3c3..3f4d9db 100644 --- a/README.md +++ b/README.md @@ -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', }; ``` @@ -51,7 +53,7 @@ npm test and then view the results: ```bash -allure serve +ALLURE_NO_ANALYTICS=1 allure serve ``` ![Example screenshot](docs/img/example.png) @@ -59,7 +61,7 @@ allure serve 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]. diff --git a/package.json b/package.json index cab72e1..c9a81b5 100644 --- a/package.json +++ b/package.json @@ -46,6 +46,9 @@ "./package.json": "./package.json" }, "files": [ + "*.js", + "!.*.js", + "!*.config.js", "src", "dist", "!**/__*__", @@ -53,6 +56,7 @@ ], "scripts": { "prepare": "husky install", + "prepack": "tsc", "build": "tsc", "docs": "typedoc", "lint": "eslint . --fix",