Skip to content

Commit

Permalink
typefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
seveibar committed Oct 12, 2024
1 parent 4ec2127 commit e4d27ec
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 15 deletions.
2 changes: 1 addition & 1 deletion benchmark/benchmark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async function benchmark() {
await convertEasyEdaJsonToVariousFormats({
jlcpcbPartNumberOrFilepath: partnumber,
outputFilename: "temp.tsx",
formatType: "tsx",
outputFormat: "tsx",
})
successes++
} catch (error) {
Expand Down
1 change: 0 additions & 1 deletion cli/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { convertRawEasyToTsx } from "lib/convert-to-typescript-component"
import * as path from "path"
import { normalizeManufacturerPartNumber } from "lib"
import { convertEasyEdaJsonToVariousFormats } from "lib/convert-easyeda-json-to-various-formats"
import { perfectCli } from "perfect-cli"

const program = new Command()

Expand Down
10 changes: 3 additions & 7 deletions tests/convert-to-ts/C128415-to-ts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,9 @@ import { EasyEdaJsonSchema } from "lib/schemas/easy-eda-json-schema"
import { convertEasyEdaJsonToCircuitJson } from "lib"

it("should convert 555timer into typescript file", async () => {
const easyeda = EasyEdaJsonSchema.parse(timerRawEasy)
const soup = convertEasyEdaJsonToCircuitJson(easyeda, {
useModelCdn: true,
})
const betterEasy = EasyEdaJsonSchema.parse(timerRawEasy)
const result = await convertBetterEasyToTsx({
easyeda,
soup,
betterEasy,
})
console.log(result)
// TODO snapshot
})
8 changes: 2 additions & 6 deletions tests/convert-to-ts/C88224-to-ts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,9 @@ import { EasyEdaJsonSchema } from "lib/schemas/easy-eda-json-schema"
import { convertEasyEdaJsonToCircuitJson } from "lib"

it("should convert c88224 into typescript file", async () => {
const easyeda = EasyEdaJsonSchema.parse(chipRawEasy)
const soup = convertEasyEdaJsonToCircuitJson(easyeda, {
useModelCdn: true,
})
const betterEasy = EasyEdaJsonSchema.parse(chipRawEasy)
const result = await convertBetterEasyToTsx({
easyeda,
soup,
betterEasy,
})

console.log(result)
Expand Down

0 comments on commit e4d27ec

Please sign in to comment.