Skip to content

Commit dbd99b0

Browse files
Merge pull request #506 from recruit-tech/fix_test_typed
fix test for e2e
2 parents 534091d + fa34759 commit dbd99b0

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

packages/typed/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@agreed/typed",
3-
"version": "6.0.1",
3+
"version": "6.0.2",
44
"main": "./lib/types.js",
55
"types": "./lib/types.d.ts",
66
"license": "MIT",
@@ -10,7 +10,7 @@
1010
},
1111
"author": "Akito Ito <[email protected]>",
1212
"scripts": {
13-
"test": "node --import tsx --test src/__tests__/server.ts",
13+
"test": "node --import tsx --test src/__tests__/**.ts src/**/__tests__/**.ts",
1414
"lint": "tslint ./src/**/*.ts",
1515
"lintfix": "tslint ./src/**/*.ts --fix",
1616
"tsc": "tsc",
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import * as path from "path";
22
import "../../hook";
33
import { run } from "../gen-swagger";
4+
import test from "node:test";
5+
import assert from "node:assert";
46

5-
test.skip("e2e testing", () => {
7+
test("e2e testing", () => {
68
const agreedPath = path.resolve(__dirname, "../../__tests__/data/agreed.ts");
79
const swagger = run({
810
path: agreedPath,
@@ -13,6 +15,5 @@ test.skip("e2e testing", () => {
1315
host: "",
1416
disablePathNumber: false
1517
});
16-
17-
expect(swagger).toMatchSnapshot();
18+
assert.strictEqual(swagger.info.title, "testing");
1819
});

0 commit comments

Comments
 (0)