Skip to content

Commit 8c0a6e5

Browse files
authored
Merge pull request #367 from mixmaxhq/adborroto/PLAT-5
adborroto/PLAT 5 Convert to Typescript
2 parents d29a49e + 0040cd1 commit 8c0a6e5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+4537
-3507
lines changed

.babelrc

-3
This file was deleted.

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ jspm_packages
4040
.idea
4141

4242
# Node 6 transpiled code.
43-
dist/node
43+
dist/

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18.18.2
1+
18.20.0
File renamed without changes.

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ Here are some examples of cursor-based APIs:
3030

3131
`npm install mongo-cursor-pagination --save`
3232

33+
## Project language
34+
35+
This project has been converted to TypeScript to enhance type safety and improve developer tooling. All source files are now `.ts` files.
36+
3337
## Usage
3438

3539
### find()

jest.config.js

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
module.exports = {
2+
preset: 'ts-jest',
3+
transform: {
4+
'^.+\\.tsx?$': 'ts-jest',
5+
},
6+
moduleFileExtensions: ['ts', 'js', 'json', 'node'],
27
clearMocks: true,
3-
collectCoverageFrom: ['src/**/*.js'],
8+
collectCoverageFrom: ['src/**/*.ts'],
9+
coverageDirectory: 'coverage',
10+
testRegex: '/((test|spec)s?|src)/.*([Tt]est|[Ss]pec)\\.(ts|js)$',
411
testEnvironment: 'node',
5-
moduleNameMapper: {
6-
'^mongodbMapped$': `mongodb${process.env.DRIVER_VERSION || ''}`,
7-
},
812
testTimeout: 15000,
913
};

0 commit comments

Comments
 (0)