-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: bump deps
- Loading branch information
Showing
14 changed files
with
3,041 additions
and
2,841 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 |
---|---|---|
|
@@ -61,7 +61,7 @@ describe('my-cool-controller tests', () => { | |
}); | ||
|
||
it('should add new user', async () => { | ||
const insertId = faker.datatype.number(); | ||
const insertId = faker.number.int(); | ||
tracker.on.insert('users').response([insertId]); | ||
|
||
const newUser = { name: 'foo bar', email: '[email protected]' }; | ||
|
@@ -179,7 +179,7 @@ db = knex({ | |
dialect: 'pg', // can be any Knex valid dialect name. | ||
}); | ||
|
||
const givenData = [{ id: faker.datatype.number() }]; | ||
const givenData = [{ id: faker.number.int() }]; | ||
tracker.on.select('table_name').response(givenData); | ||
|
||
const data = await db('table_name').distinctOn('age'); | ||
|
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,18 @@ | ||
const packageJson = require('./package.json'); | ||
|
||
/** @type {import('ts-jest').JestConfigWithTsJest} */ | ||
module.exports = { | ||
displayName: packageJson.name, | ||
testEnvironment: 'node', | ||
preset: 'ts-jest', | ||
testMatch: ['<rootDir>/tests/**/?(*.)+(spec|test).[jt]s?(x)'], | ||
globals: { | ||
'ts-jest': { | ||
isolatedModules: true | ||
} | ||
} | ||
transform: { | ||
'^.+\\.tsx?$': [ | ||
'ts-jest', | ||
{ | ||
tsconfig: { moduleResolution: 'classic' }, | ||
isolatedModules: true, | ||
}, | ||
], | ||
}, | ||
}; |
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
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
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.