Skip to content

Commit

Permalink
Added functionality to generate 'dist' folder for npm package (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmanukyan committed Feb 22, 2024
1 parent 17150f0 commit 7fbe400
Show file tree
Hide file tree
Showing 9 changed files with 223 additions and 42 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.log
*.output
node_modules/
node_modules/
dist/
12 changes: 6 additions & 6 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import CallerVitest from "./src/reporters/caller-vitest.ts";
import CallerPlaywright from "./src/reporters/caller-playwright.ts";
import CallerVitest from "./src/reporters/caller-vitest";
import CallerPlaywright from "./src/reporters/caller-playwright";
import type {
FullConfig, FullResult, Suite, TestCase, TestResult
} from '@playwright/test/reporter';
Expand All @@ -13,19 +13,19 @@ class VitestTestrailReporter {
this.caller.onInit();
}

onPathsCollected(paths) {
onPathsCollected(paths: any) {
this.caller.onPathsCollected(paths);
}

onCollected(file) {
onCollected(file: any) {
this.caller.onCollected(file);
}

onTaskUpdate(packs) {
onTaskUpdate(packs: any) {
this.caller.onTaskUpdate(packs);
}

onFinished(packs) {
onFinished(packs: any) {
this.caller.onFinished(packs);
}
}
Expand Down
164 changes: 150 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 11 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
{
"name": "@zealteam/testrail-reporter",
"version": "1.0.3",
"version": "1.0.4",
"description": "A custom reporter for Vitest, Jest, and Playwright designed to synchronize with Testrail.",
"author": "Davit Manukyan <davit_m@zealous.tech>",
"repository": {
"type": "git",
"url": "git+https://github.com/zealous-tech/testrail-reporter.git"
},
"types": "./dist/index.d.ts",
"engines": {
"node": ">=10.0.0"
},
"main": "index.ts",
"main": "./dist/index.js",
"files": [
"/dist"
],
"scripts": {
"build": "npx tsc",
"jest": "jest",
"playwright": "playwright",
"vitest": "vitest"
Expand All @@ -28,7 +33,9 @@
"dependencies": {
"@dlenroc/testrail": "^1.9.1",
"@playwright/test": "^1.40.1",
"colorette": "^2.0.20",
"jest": "^29.7.0",
"node-schedule": "^2.1.1",
"playwright": "^1.40.1",
"vitest": "^1.1.0"
},
Expand All @@ -41,13 +48,13 @@
"homepage": "https://github.com/zealous-tech/testrail-reporter#readme",
"devDependencies": {
"@types/node": "^20.11.6",
"@types/node-schedule": "^2.1.6",
"@typescript-eslint/eslint-plugin": "^7.0.1",
"@typescript-eslint/parser": "^7.0.1",
"colorette": "^2.0.20",
"eslint": "^8.56.0",
"eslint-plugin-react": "^7.33.2",
"node-schedule": "^2.1.1",
"path": "^0.12.7",
"ts-node": "^10.9.2",
"typescript": "^5.2.2"
},
"publishConfig": {
Expand Down
Loading

0 comments on commit 7fbe400

Please sign in to comment.