Skip to content

Commit 40fa37a

Browse files
Merge pull request #39 from contentstack/staging
oclif v4 upgrade, add jest and add user input validation for launch:function port
2 parents 73428cb + 3ac04e3 commit 40fa37a

File tree

13 files changed

+15674
-15686
lines changed

13 files changed

+15674
-15686
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ dependabot.yml
1616
/bkp
1717
.editorconfig
1818
/functions
19+
coverage/

jest.config.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/**
2+
* For a detailed explanation regarding each configuration property, visit:
3+
* https://jestjs.io/docs/configuration
4+
*/
5+
6+
/** @type {import('jest').Config} */
7+
const config = {
8+
// Indicates whether the coverage information should be collected while executing the test
9+
collectCoverage: false,
10+
11+
// The directory where Jest should output its coverage files
12+
coverageDirectory: 'coverage',
13+
14+
// Indicates which provider should be used to instrument code for coverage
15+
coverageProvider: 'v8',
16+
17+
// A preset that is used as a base for Jest's configuration
18+
preset: 'ts-jest',
19+
20+
// The glob patterns Jest uses to detect test files
21+
testMatch: ['**/src/**/?(*.)+(spec|test).[tj]s?(x)'],
22+
};
23+
24+
module.exports = config;

0 commit comments

Comments
 (0)