-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: improve setup * test: add test runner
- Loading branch information
1 parent
9cecd9e
commit 0eea5cf
Showing
10 changed files
with
31 additions
and
6 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 @@ | ||
{ | ||
"exclude": [ | ||
"misc/*", | ||
"examples/*", | ||
"fixtures/*", | ||
"test/*" | ||
] | ||
} |
File renamed without changes.
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 |
---|---|---|
|
@@ -6,17 +6,20 @@ | |
"main": "lib/index.js", | ||
"author": "Colin J. Ihrig <[email protected]> (http://www.cjihrig.com/)", | ||
"scripts": { | ||
"test": "npm run lint && node --test", | ||
"lint": "standard | snazzy" | ||
"test": "npm run lint && c8 node test/runner.js", | ||
"lint": "standard | snazzy", | ||
"lint:fix": "standard --fix" | ||
}, | ||
"dependencies": { | ||
"@mercuriusjs/subscription-client": "^1.0.0", | ||
"graphql": "^16.8.0", | ||
"undici": "^5.22.1" | ||
"graphql": "^16.8.1", | ||
"undici": "^5.27.2" | ||
}, | ||
"devDependencies": { | ||
"fastify": "^4.22.0", | ||
"mercurius": "^13.1.0", | ||
"c8": "^8.0.1", | ||
"fastify": "^4.24.3", | ||
"glob": "^10.3.10", | ||
"mercurius": "^13.2.2", | ||
"snazzy": "^9.0.0", | ||
"standard": "^17.1.0" | ||
} | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,14 @@ | ||
'use strict' | ||
|
||
const { tap, spec } = require('node:test/reporters') | ||
const { run } = require('node:test') | ||
const glob = require('glob').globSync | ||
|
||
/* eslint-disable new-cap */ | ||
const reporter = process.stdout.isTTY ? new spec() : tap | ||
|
||
const files = glob('test/**/*.test.js') | ||
|
||
run({ files, timeout: 30_000, concurrency: files.length }) | ||
.compose(reporter) | ||
.pipe(process.stdout) |
File renamed without changes.