Skip to content

Commit 116c5fe

Browse files
authored
chore: fix ci (#94)
* test: disable tap-monkey layer * chore: try basic tape * chore: try with 🐒 back * chore: back to basic tape * fix: test .plan * fix(summary): update analysis * revert: test.plan in summary
1 parent 74e6332 commit 116c5fe

File tree

3 files changed

+5403
-5149
lines changed

3 files changed

+5403
-5149
lines changed

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"prepublishOnly": "npm run build && pkg-ok",
1818
"build": "node ./esbuild.config.js",
1919
"test": "npm run test-only && npm run eslint",
20-
"test-only": "cross-env esm-tape-runner 'test/**/*.spec.js' | tap-monkey",
20+
"test-only": "cross-env tape 'test/**/*.spec.js'",
2121
"coverage": "c8 --all --src ./src -r html npm run test"
2222
},
2323
"files": [
@@ -59,8 +59,6 @@
5959
"@nodesecure/eslint-config": "^1.3.0",
6060
"@nodesecure/size-satisfies": "^1.0.2",
6161
"@nodesecure/vis-network": "^1.1.0",
62-
"@small-tech/esm-tape-runner": "^1.0.3",
63-
"@small-tech/tap-monkey": "^1.3.0",
6462
"@types/node": "^16.11.11",
6563
"c8": "^7.10.0",
6664
"cross-env": "^7.0.3",

test/commands/summary.spec.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import path from "path";
55

66
// Import Third-party Dependencies
77
import test from "tape";
8-
import split from "split2";
8+
import splitByLine from "split2";
99

1010
// CONSTANTS
1111
const __dirname = path.dirname(fileURLToPath(import.meta.url));
@@ -15,15 +15,15 @@ test("summary should execute summary command on fixtures 'result-test1.json'", a
1515
const lines = [
1616
/Global Stats: express.*$/,
1717
/.*/,
18-
/Total of packages:.*60.*$/,
19-
/Total size:.*1.59 MB.*$/,
18+
/Total of packages:.*65.*$/,
19+
/Total size:.*1.62 MB.*$/,
2020
/Packages with indirect dependencies:.*6.*$/,
2121
/.*/,
2222
/Extensions:.*$/,
23-
/\(52\) \.md - \(52\) \.js - \(50\) {2}- \(52\) \.json - \(5\) \.ts - \(1\) \.yml.*$/,
23+
/\(48\) {2}- \(50\) \.md - \(50\) \.json - \(50\) \.js - \(5\) \.ts - \(2\) \.yml.*$/,
2424
/.*/,
2525
/Licenses:.*$/,
26-
/\(48\) MIT - \(1\) BSD-3-Clause - \(3\) ISC.*$/,
26+
/\(47\) MIT - \(2\) ISC.*$/,
2727
/.*/
2828
];
2929
tape.plan(lines.length * 2);
@@ -36,7 +36,7 @@ test("summary should execute summary command on fixtures 'result-test1.json'", a
3636
});
3737
tape.teardown(() => child.kill());
3838

39-
const rStream = child.stdout.pipe(split());
39+
const rStream = child.stdout.pipe(splitByLine());
4040
for await (const line of rStream) {
4141
const regexp = lines.shift();
4242

0 commit comments

Comments
 (0)