Skip to content

Commit

Permalink
Try to fix CI build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
erikpukinskis committed Dec 11, 2024
1 parent 386f1d2 commit b99dd1c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
- name: Set up Yarn cache
uses: actions/setup-node@v3
with:
node-version: "16"
node-version: "18"
cache: yarn
- run: yarn install --frozen-lockfile
- run: yarn build
Expand Down
11 changes: 8 additions & 3 deletions lib/presets/dist.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe("presets/dist", () => {
let system: TestSystem

beforeAll(async () => {
system = new TestSystem()
system = new TestSystem({ silent: false })
const project = new Project({
system,
runtimes: ["lib"],
Expand All @@ -21,8 +21,13 @@ describe("presets/dist", () => {
system.cleanUp()
})

it("can build", () => {
expect(system.run("yarn build")).toHaveProperty("status", 0)
it.only("can build", () => {
// const lines: string[] = []
const result = system.run("yarn build")
// console.log("OUTPUT", lines)
expect(result).toMatchObject({
status: 0,
})
})
})
})
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@
"fix:lint": "eslint --ignore-path .gitignore --no-error-on-unmatched-pattern . --fix; if [ $? -eq 0 ]; then echo 8J+OiSBObyBsaW50IGluIHRoaXMgY29kZSEKCg== | base64 -d; else exit 1; fi",
"gen": "npx ts-node -r tsconfig-paths/register --transpile-only ./lib/index.ts",
"start:bin": "ts-node -r tsconfig-paths/register --transpile-only ./lib/index.ts",
"test": "vitest run --config vite.test.config.js",
"test:dist": "yarn build && yarn test -t @dist",
"test": "vitest run --config vite.test.config.js --allowOnly lib/presets/dist.test.ts",
"watch:build": "chokidar \"lib/**/*\" -c \"yarn build\"",
"watch:test": "vitest watch --config vite.test.config.js"
}
Expand Down

0 comments on commit b99dd1c

Please sign in to comment.