test: add vitest for unit tests (#50)
* feat: add vitest for unit tests * chore: address pull request feedback * test: add unit test code quality workflow
This commit is contained in:
10
packages/common/src/test/object.spec.ts
Normal file
10
packages/common/src/test/object.spec.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
import { objectKeys } from "../object";
|
||||
|
||||
describe("objectKeys should return all keys of an object", () => {
|
||||
it("should return all keys of an object", () => {
|
||||
const obj = { a: 1, b: 2, c: 3 };
|
||||
expect(objectKeys(obj)).toEqual(["a", "b", "c"]);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user