-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core/internal): migrate to Japa as test runner.
tap is a bit of a mess right now and its time to cut losses
- Loading branch information
Showing
16 changed files
with
2,812 additions
and
3,415 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"src": "./src", | ||
"all": true, | ||
"reporter": [ | ||
"text", | ||
"lcovonly" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,6 @@ node_modules/ | |
coverage/ | ||
test.sh | ||
test.sh.sha256 | ||
.tap/ | ||
.tsimp/ | ||
**/*.js | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { assert } from '@japa/assert'; | ||
import { configure, processCLIArgs, run } from '@japa/runner'; | ||
|
||
processCLIArgs(process.argv.splice(2)); | ||
configure({ | ||
suites: [ | ||
{ | ||
name: 'unit', | ||
files: ['test/unit/**/*.test.ts'], | ||
}, | ||
{ | ||
name: 'integration', | ||
files: ['test/integration/**/*.test.ts'], | ||
}, | ||
], | ||
plugins: [assert()], | ||
}); | ||
|
||
await run(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,62 @@ | ||
{ | ||
"name": "codeclimate-action", | ||
"version": "6.0.0", | ||
"private": true, | ||
"description": "Publish code coverage to Code Climate", | ||
"type": "module", | ||
"main": "lib/main.js", | ||
"packageManager": "[email protected]", | ||
"scripts": { | ||
"build": "tsc", | ||
"test": "cross-env NODE_OPTIONS=\"--no-warnings\" tap run --disable-coverage", | ||
"test:only": "pnpm run test --only", | ||
"coverage": "pnpm run test --no-disable-coverage --allow-incomplete-coverage --coverage-report=lcovonly", | ||
"coverage:html": "pnpm run coverage --coverage-report=html", | ||
"biome:ci": "biome ci ./", | ||
"format:check": "biome format ./", | ||
"format": "biome format --write ./", | ||
"lint:check": "biome lint ./", | ||
"lint": "biome lint --apply ./", | ||
"lint:unsafe": "biome lint --apply-unsafe ./" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/paambaati/codeclimate-action.git" | ||
}, | ||
"keywords": [ | ||
"actions", | ||
"codeclimate", | ||
"quality", | ||
"coverage" | ||
], | ||
"author": "GP <[email protected]>", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@actions/core": "1.10.1", | ||
"@actions/exec": "1.1.1", | ||
"@actions/github": "6.0.0", | ||
"@actions/glob": "0.4.0", | ||
"hook-std": "3.0.0", | ||
"node-fetch": "3.3.2", | ||
"openpgp": "5.11.1" | ||
}, | ||
"devDependencies": { | ||
"@biomejs/biome": "1.7.3", | ||
"@openpgp/web-stream-tools": "0.1.1", | ||
"@tapjs/core": "2.0.1", | ||
"@tapjs/test": "2.0.1", | ||
"@tapjs/tsx": "1.1.25", | ||
"@tsconfig/node20": "20.1.4", | ||
"@tsconfig/strictest": "2.0.5", | ||
"@types/node": "20.12.12", | ||
"@types/node-fetch": "2.6.11", | ||
"@types/sinon": "17.0.3", | ||
"@types/which": "3.0.3", | ||
"cross-env": "7.0.3", | ||
"nock": "13.5.4", | ||
"sinon": "18.0.0", | ||
"tap": "19.0.2", | ||
"to-readable-stream": "4.0.0", | ||
"ts-node": "10.9.2", | ||
"typescript": "5.4.5", | ||
"which": "4.0.0" | ||
}, | ||
"tap": { | ||
"plugin": [ | ||
"!@tapjs/typescript", | ||
"@tapjs/tsx" | ||
] | ||
} | ||
"name": "codeclimate-action", | ||
"version": "6.0.0", | ||
"private": true, | ||
"description": "Publish code coverage to Code Climate", | ||
"type": "module", | ||
"main": "lib/main.js", | ||
"packageManager": "[email protected]", | ||
"scripts": { | ||
"build": "tsc -p tsconfig.build.json", | ||
"test": "node --import=tsimp/import --enable-source-maps bin/test.ts", | ||
"coverage": "c8 pnpm run test", | ||
"coverage:html": "c8 --reporter=html pnpm run test", | ||
"biome:ci": "biome ci ./", | ||
"format:check": "biome format ./", | ||
"format": "biome format --write ./", | ||
"lint:check": "biome lint ./", | ||
"lint": "biome lint --apply ./", | ||
"lint:unsafe": "biome lint --apply-unsafe ./" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/paambaati/codeclimate-action.git" | ||
}, | ||
"keywords": [ | ||
"actions", | ||
"codeclimate", | ||
"quality", | ||
"coverage" | ||
], | ||
"author": "GP <[email protected]>", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@actions/core": "1.10.1", | ||
"@actions/exec": "1.1.1", | ||
"@actions/github": "6.0.0", | ||
"@actions/glob": "0.4.0", | ||
"hook-std": "3.0.0", | ||
"node-fetch": "3.3.2", | ||
"openpgp": "5.11.1" | ||
}, | ||
"devDependencies": { | ||
"@biomejs/biome": "1.7.3", | ||
"@japa/assert": "3.0.0", | ||
"@japa/runner": "3.1.4", | ||
"@openpgp/web-stream-tools": "0.1.1", | ||
"@tsconfig/node20": "20.1.4", | ||
"@tsconfig/strictest": "2.0.5", | ||
"@types/node": "20.12.13", | ||
"@types/node-fetch": "2.6.11", | ||
"@types/sinon": "17.0.3", | ||
"@types/which": "3.0.3", | ||
"c8": "9.1.0", | ||
"cross-env": "7.0.3", | ||
"into-stream": "8.0.1", | ||
"nock": "13.5.4", | ||
"sinon": "18.0.0", | ||
"tsimp": "2.0.11", | ||
"typescript": "5.4.5", | ||
"which": "4.0.0" | ||
} | ||
} |
Oops, something went wrong.