Skip to content

Commit 63311bd

Browse files
committed
esm tests
Signed-off-by: Sora Morimoto <[email protected]>
1 parent 11c5089 commit 63311bd

File tree

38 files changed

+38
-38
lines changed

38 files changed

+38
-38
lines changed

tests/spec/additional-properties-2.0/basic.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe("basic", async () => {
2020
test("additional properties 2.0", async () => {
2121
await generateApi({
2222
name: "schema",
23-
input: path.resolve(__dirname, "schema.json"),
23+
input: path.resolve(import.meta.dirname, "schema.json"),
2424
output: tmpdir,
2525
silent: true,
2626
addReadonly: true,

tests/spec/another-array-type/basic.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe("basic", async () => {
2020
test("--another-array-type", async () => {
2121
await generateApi({
2222
name: "schema",
23-
input: path.resolve(__dirname, "schema.json"),
23+
input: path.resolve(import.meta.dirname, "schema.json"),
2424
output: tmpdir,
2525
silent: true,
2626
anotherArrayType: true,

tests/spec/another-query-params/basic.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe("basic", async () => {
2020
test("another-query-params", async () => {
2121
await generateApi({
2222
name: "schema",
23-
input: path.resolve(__dirname, "schema.json"),
23+
input: path.resolve(import.meta.dirname, "schema.json"),
2424
output: tmpdir,
2525
silent: true,
2626
generateClient: true,

tests/spec/axios/basic.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe("basic", async () => {
2020
test("--axios option", async () => {
2121
await generateApi({
2222
name: "schema",
23-
input: path.resolve(__dirname, "schema.json"),
23+
input: path.resolve(import.meta.dirname, "schema.json"),
2424
output: tmpdir,
2525
silent: true,
2626
generateClient: true,

tests/spec/axiosSingleHttpClient/basic.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe("basic", async () => {
2020
test("--axios --single-http-client", async () => {
2121
await generateApi({
2222
name: "schema",
23-
input: path.resolve(__dirname, "schema.json"),
23+
input: path.resolve(import.meta.dirname, "schema.json"),
2424
output: tmpdir,
2525
silent: true,
2626
generateClient: true,

tests/spec/const-keyword/basic.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe("basic", async () => {
2020
test("const-keyword", async () => {
2121
await generateApi({
2222
name: "schema",
23-
input: path.resolve(__dirname, "schema.json"),
23+
input: path.resolve(import.meta.dirname, "schema.json"),
2424
output: tmpdir,
2525
silent: true,
2626
addReadonly: true,

tests/spec/custom-extensions/basic.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe("basic", async () => {
2020
test("custom extensions", async () => {
2121
await generateApi({
2222
name: "schema",
23-
input: path.resolve(__dirname, "schema.json"),
23+
input: path.resolve(import.meta.dirname, "schema.json"),
2424
output: tmpdir,
2525
silent: true,
2626
});

tests/spec/defaultAsSuccess/basic.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe("basic", async () => {
2020
test("--default-as-success", async () => {
2121
await generateApi({
2222
name: "schema",
23-
input: path.resolve(__dirname, "schema.json"),
23+
input: path.resolve(import.meta.dirname, "schema.json"),
2424
output: tmpdir,
2525
silent: true,
2626
defaultResponseAsSuccess: true,

tests/spec/defaultResponse/basic.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe("basic", async () => {
2020
test("--default-response", async () => {
2121
await generateApi({
2222
name: "schema",
23-
input: path.resolve(__dirname, "schema.json"),
23+
input: path.resolve(import.meta.dirname, "schema.json"),
2424
output: tmpdir,
2525
silent: true,
2626
defaultResponseType: "unknown",

tests/spec/deprecated/basic.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe("basic", async () => {
2020
test("@deprecated", async () => {
2121
await generateApi({
2222
name: "schema",
23-
input: path.resolve(__dirname, "schema.json"),
23+
input: path.resolve(import.meta.dirname, "schema.json"),
2424
output: tmpdir,
2525
silent: true,
2626
queryParamsWithBrackets: true,

0 commit comments

Comments
 (0)