Skip to content

Commit 9384a19

Browse files
committed
chore: ongoing
1 parent fbbd2b8 commit 9384a19

28 files changed

Lines changed: 47284 additions & 13499 deletions

.eslintignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,3 @@ dist
22
node_modules
33
build
44
tmp
5-
jest.config.js
6-
babel.config.js

.github/workflows/pr.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,17 @@ on:
77
jobs:
88
test:
99
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
node-version: [20, 22]
1013
steps:
1114
- uses: actions/checkout@v4
1215

1316
- uses: pnpm/action-setup@v4
1417

1518
- uses: actions/setup-node@v4
1619
with:
20+
node-version: ${{ matrix.node-version }}
1721
cache: 'pnpm'
1822
registry-url: 'https://registry.npmjs.org'
1923

Makefile

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ clean:
1616
.PHONY: test
1717
test: node_modules
1818
pnpm tsc -b
19-
NODE_OPTIONS=--experimental-vm-modules pnpm jest
19+
pnpm exec vitest
2020

2121
node_modules: package.json
2222
pnpm install
@@ -45,16 +45,21 @@ test1: __tests__/fixtures/test1.json dist
4545
-o __tests__/fixtures/test1
4646
pnpm prettier --write __tests__/fixtures/test1
4747

48-
.PHONY: openai
49-
openai: __tests__/fixtures/openai.yaml dist
48+
49+
__tests__/fixtures/openai.json: __tests__/fixtures/openai.yaml
5050
mkdir -p $(@D)
51-
pnpm js-yaml $< > $(@D)/openai.json
51+
pnpm js-yaml $< > $@
52+
53+
__tests__/fixtures/openai.yaml: __tests__/fixtures/openai.yaml
54+
curl https://raw.githubusercontent.com/openai/openai-openapi/refs/heads/master/openapi.yaml --output $@
55+
56+
.PHONY: openai
57+
openai: __tests__/fixtures/openai.json dist
5258
node --enable-source-maps dist/bin/index.js \
53-
-i $(@D)/openai.json \
59+
-i $< \
5460
-o __tests__/fixtures/openai
5561
pnpm prettier --write __tests__/fixtures/openai
5662

57-
5863
# .PHONY: cloudflare
5964
# cloudflare: __tests__/fixtures/cloudflare/openapi.json dist
6065
# node --enable-source-maps dist/bin/index.js \

__tests__/__snapshots__/nullables.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

33
exports[`nullables 1`] = `
44
"import type { Jsonifiable, Jsonify } from "type-fest";

__tests__/fixtures/openai.json

Lines changed: 16914 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)