Skip to content

Commit

Permalink
feat(nodecli): add a basic test
Browse files Browse the repository at this point in the history
  • Loading branch information
damienbutt committed Feb 21, 2024
1 parent 65d5480 commit 1401082
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,12 @@
},
{
"$ref": "#/files/paths/releaserc"
},
{
"$ref": "#/files/paths/tests"
},
{
"$ref": "#/files/paths/vitestconfigjs"
}
]
},
Expand Down
7 changes: 7 additions & 0 deletions templates/nodecli/tests/app.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { describe, it, expect } from "vitest";

describe("app", () => {
it("should always pass", () => {
expect(true).toBe(true);
});
});
12 changes: 12 additions & 0 deletions templates/nodecli/vitest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { defineConfig } from "vitest/config";

export default defineConfig({
test: {
environment: "node",
testTimeout: 60000,
resolveSnapshotPath(path, extension) {
return path + extension;
},
include: ["tests/**/*.test.js"],
},
});

0 comments on commit 1401082

Please sign in to comment.