Skip to content

Commit

Permalink
Merge pull request #506 from recruit-tech/fix_test_typed
Browse files Browse the repository at this point in the history
fix test for e2e
  • Loading branch information
yosuke-furukawa authored Mar 15, 2024
2 parents 534091d + fa34759 commit dbd99b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/typed/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@agreed/typed",
"version": "6.0.1",
"version": "6.0.2",
"main": "./lib/types.js",
"types": "./lib/types.d.ts",
"license": "MIT",
Expand All @@ -10,7 +10,7 @@
},
"author": "Akito Ito <[email protected]>",
"scripts": {
"test": "node --import tsx --test src/__tests__/server.ts",
"test": "node --import tsx --test src/__tests__/**.ts src/**/__tests__/**.ts",
"lint": "tslint ./src/**/*.ts",
"lintfix": "tslint ./src/**/*.ts --fix",
"tsc": "tsc",
Expand Down
7 changes: 4 additions & 3 deletions packages/typed/src/commands/__tests__/gen-swagger.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import * as path from "path";
import "../../hook";
import { run } from "../gen-swagger";
import test from "node:test";
import assert from "node:assert";

test.skip("e2e testing", () => {
test("e2e testing", () => {
const agreedPath = path.resolve(__dirname, "../../__tests__/data/agreed.ts");
const swagger = run({
path: agreedPath,
Expand All @@ -13,6 +15,5 @@ test.skip("e2e testing", () => {
host: "",
disablePathNumber: false
});

expect(swagger).toMatchSnapshot();
assert.strictEqual(swagger.info.title, "testing");
});

0 comments on commit dbd99b0

Please sign in to comment.