-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(deps-dev): update dev dependencies
- Loading branch information
Showing
8 changed files
with
3,815 additions
and
4,017 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,29 @@ | ||
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */ | ||
/** @type {import('ts-jest').JestConfigWithTsJest} */ | ||
module.exports = { | ||
preset: "ts-jest/presets/js-with-ts", | ||
testEnvironment: "node", | ||
setupFiles: ["dotenv/config"], | ||
setupFilesAfterEnv: ["<rootDir>/jest.setup.ts"], | ||
testMatch: ["**/tests/**/*.test.{ts,tsx}"], | ||
globals: { | ||
"ts-jest": { | ||
isolatedModules: true, | ||
}, | ||
transform: { | ||
"^.+\\.tsx?$": [ | ||
"ts-jest", | ||
{ | ||
isolatedModules: true, | ||
}, | ||
], | ||
}, | ||
testLocationInResults: true, | ||
coverageProvider: "v8", | ||
collectCoverage: true, | ||
collectCoverageFrom: ["./src/**"], | ||
coverageReporters: ["lcov", "text", "text-summary"], | ||
coverageThreshold: { | ||
global: { | ||
statements: 85.11, | ||
branches: 58, | ||
statements: 84.22, | ||
branches: 64.1, | ||
functions: 70, | ||
lines: 85.11, | ||
lines: 84.22, | ||
}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`formatData it formats data 1`] = ` | ||
Object { | ||
{ | ||
"name": "First Last", | ||
} | ||
`; | ||
|
||
exports[`getData it accepts data options 1`] = ` | ||
Object { | ||
{ | ||
"author": "shadcn", | ||
"id": "ID", | ||
"title": "Title of Article", | ||
|
@@ -16,14 +16,14 @@ Object { | |
`; | ||
|
||
exports[`getData it accepts placeholder options 1`] = ` | ||
Object { | ||
{ | ||
"email": "[email protected]", | ||
"name": "shadcn", | ||
} | ||
`; | ||
|
||
exports[`getData it returns data for a query 1`] = ` | ||
Object { | ||
{ | ||
"author": "shadcn", | ||
"id": "id", | ||
"title": "Title of Article", | ||
|
@@ -32,52 +32,52 @@ Object { | |
`; | ||
|
||
exports[`getData it returns data when both data and placeholder is defined 1`] = ` | ||
Object { | ||
{ | ||
"email": "[email protected]", | ||
} | ||
`; | ||
|
||
exports[`getData it returns formatted data if a formatter is defined 1`] = ` | ||
Object { | ||
{ | ||
"email": "[email protected]", | ||
"name": "First Last", | ||
} | ||
`; | ||
|
||
exports[`getData it returns placeholder data if a query does not define data 1`] = ` | ||
Object { | ||
{ | ||
"name": "shadcn", | ||
} | ||
`; | ||
|
||
exports[`getParams it accepts params options 1`] = ` | ||
Object { | ||
"fields": Object { | ||
{ | ||
"fields": { | ||
"resource": "foo,bar", | ||
}, | ||
"filter": Object {}, | ||
"include": Array [], | ||
"sort": Array [], | ||
"filter": {}, | ||
"include": [], | ||
"sort": [], | ||
} | ||
`; | ||
|
||
exports[`getParams it allows params to be nested 1`] = ` | ||
Object { | ||
"fields": Object {}, | ||
"filter": Object {}, | ||
{ | ||
"fields": {}, | ||
"filter": {}, | ||
"include": "field_image,uid", | ||
"page": Object { | ||
"page": { | ||
"limit": 10, | ||
}, | ||
"sort": Array [], | ||
"sort": [], | ||
} | ||
`; | ||
|
||
exports[`getParams it returns params for a query 1`] = ` | ||
Object { | ||
"fields": Object {}, | ||
"filter": Object {}, | ||
{ | ||
"fields": {}, | ||
"filter": {}, | ||
"include": "field_image,uid", | ||
"sort": Array [], | ||
"sort": [], | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.