mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 10:21:55 +00:00
chore: Update testing
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,4 +1,5 @@
|
||||
.vscode
|
||||
dist/
|
||||
node_modules/
|
||||
lib/coverage
|
||||
lib/test/output.ts
|
||||
@@ -1,3 +1,4 @@
|
||||
import { deepEqual } from "../util"
|
||||
import { deepMerge } from "../util/deepMerge"
|
||||
|
||||
describe("deepMerge", () => {
|
||||
@@ -12,6 +13,13 @@ describe("deepMerge", () => {
|
||||
a: { b: 3, c: 2 },
|
||||
})
|
||||
})
|
||||
test("deepMerge({a: {b: 1, c:2}}, {a: {b: 3}}) should equal {a: {b: 3, c: 2}} with deep equal", () => {
|
||||
expect(
|
||||
deepEqual(deepMerge({ a: { b: 1, c: 2 } }, { a: { b: 3 } }), {
|
||||
a: { b: 3, c: 2 },
|
||||
}),
|
||||
).toBeTruthy()
|
||||
})
|
||||
test("deepMerge([1,2,3], [2,3,4]) should equal [2,3,4]", () => {
|
||||
expect(deepMerge([1, 2, 3], [2, 3, 4])).toEqual([2, 3, 4])
|
||||
})
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"main": "./lib/index.js",
|
||||
"types": "./lib/index.d.ts",
|
||||
"scripts": {
|
||||
"test": "jest -c ./jest.config.js",
|
||||
"test": "jest -c ./jest.config.js --coverage",
|
||||
"buildOutput": "ts-node --esm ./lib/test/makeOutput.ts && npx prettier --write '**/*.ts'",
|
||||
"check": "tsc --noEmit"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user