Skip to content

Commit

Permalink
Merge pull request #367 from mixmaxhq/adborroto/PLAT-5
Browse files Browse the repository at this point in the history
adborroto/PLAT 5 Convert to Typescript
  • Loading branch information
adborroto authored Jan 23, 2025
2 parents d29a49e + 0040cd1 commit 8c0a6e5
Show file tree
Hide file tree
Showing 43 changed files with 4,537 additions and 3,507 deletions.
3 changes: 0 additions & 3 deletions .babelrc

This file was deleted.

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ jspm_packages
.idea

# Node 6 transpiled code.
dist/node
dist/
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.18.2
18.20.0
File renamed without changes.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ Here are some examples of cursor-based APIs:

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

## Project language

This project has been converted to TypeScript to enhance type safety and improve developer tooling. All source files are now `.ts` files.

## Usage

### find()
Expand Down
12 changes: 8 additions & 4 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
module.exports = {
preset: 'ts-jest',
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
moduleFileExtensions: ['ts', 'js', 'json', 'node'],
clearMocks: true,
collectCoverageFrom: ['src/**/*.js'],
collectCoverageFrom: ['src/**/*.ts'],
coverageDirectory: 'coverage',
testRegex: '/((test|spec)s?|src)/.*([Tt]est|[Ss]pec)\\.(ts|js)$',
testEnvironment: 'node',
moduleNameMapper: {
'^mongodbMapped$': `mongodb${process.env.DRIVER_VERSION || ''}`,
},
testTimeout: 15000,
};
Loading

0 comments on commit 8c0a6e5

Please sign in to comment.