Skip to content
This repository has been archived by the owner on Oct 7, 2022. It is now read-only.

Commit

Permalink
Merge pull request #12 from WorksApplications/nullable
Browse files Browse the repository at this point in the history
Feat: nullable
  • Loading branch information
myuon authored Jun 13, 2019
2 parents f21377c + 54cbdfa commit 4397353
Show file tree
Hide file tree
Showing 7 changed files with 271 additions and 246 deletions.
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"singleQuote": true
}
21 changes: 11 additions & 10 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,19 @@ module.exports = {
// globalTeardown: null,

// A set of global variables that need to be available in all test environments
// globals: {},
globals: {
'ts-jest': {
diagnostics: false
}
},

// An array of directory names to be searched recursively up from the requiring module's location
// moduleDirectories: [
// "node_modules"
// ],

// An array of file extensions your modules use
moduleFileExtensions: [
"js",
"ts",
],
moduleFileExtensions: ['js', 'ts'],

// A map from regular expressions to module names that allow to stub out resources with a single module
// moduleNameMapper: {},
Expand Down Expand Up @@ -122,7 +123,7 @@ module.exports = {
// snapshotSerializers: [],

// The test environment that will be used for testing
testEnvironment: "node",
testEnvironment: 'node',

// Options that will be passed to the testEnvironment
// testEnvironmentOptions: {},
Expand All @@ -132,8 +133,8 @@ module.exports = {

// The glob patterns Jest uses to detect test files
testMatch: [
// "**/__tests__/**/*.js?(x)",
"**/?(*.)+(spec|test).(js|ts)?(x)"
// "**/__tests__/**/*.js?(x)",
'**/?(*.)+(spec|test).(js|ts)?(x)'
],

// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
Expand All @@ -158,8 +159,8 @@ module.exports = {

// A map from regular expressions to paths to transformers
transform: {
"^.+\\.tsx?$": "ts-jest"
},
'^.+\\.tsx?$': 'ts-jest'
}

// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
// transformIgnorePatterns: [
Expand Down
Loading

0 comments on commit 4397353

Please sign in to comment.