Skip to content

Commit

Permalink
Merge pull request #17 from saiichihashimoto/unit-testable
Browse files Browse the repository at this point in the history
fix(fs): using fs instead of fs/promises
  • Loading branch information
kodiakhq[bot] committed Jan 15, 2024
2 parents 818272a + cae6f1b commit 029463b
Show file tree
Hide file tree
Showing 8 changed files with 633 additions and 170 deletions.
12 changes: 10 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,14 @@
{
"autoFix": false,
"cspell": {
"words": ["cronstrue", "encryptor", "pino", "unstash", "zeplo"]
"words": [
"cronstrue",
"encryptor",
"memfs",
"pino",
"unstash",
"zeplo"
]
}
}
],
Expand Down Expand Up @@ -239,6 +246,7 @@
"unicorn/explicit-length-check": "off",
"unicorn/import-style": "off",
"unicorn/no-array-callback-reference": "off",
"unicorn/no-array-for-each": "off",
"unicorn/no-array-method-this-argument": "off",
"unicorn/no-array-reduce": "off",
"unicorn/no-await-expression-member": "off",
Expand All @@ -250,7 +258,7 @@
"unicorn/numeric-separators-style": "off",
"unicorn/prefer-at": "error",
"unicorn/prefer-json-parse-buffer": "error",
"unicorn/prefer-node-protocol": "off",
"unicorn/prefer-node-protocol": "error",
"unicorn/prefer-string-replace-all": "error",
"unicorn/prefer-top-level-await": "off",
"unicorn/prefer-type-error": "off",
Expand Down
4 changes: 4 additions & 0 deletions jest.config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"fakeTimers": {
"enableGlobally": true,
"now": 1696486441293
},
"passWithNoTests": true,
"preset": "ts-jest",
"restoreMocks": true,
Expand Down
156 changes: 123 additions & 33 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,12 @@
"is-ci": "3.0.1",
"jest": "29.7.0",
"lint-staged": "15.1.0",
"memfs": "4.6.0",
"prettier": "2.8.8",
"prettier-plugin-sh": "0.12.8",
"semantic-release": "22.0.8",
"ts-jest": "29.1.1",
"ts-node": "10.9.2",
"tsc-watch": "6.0.4",
"typescript": "5.3.2"
},
Expand Down
Loading

0 comments on commit 029463b

Please sign in to comment.