Skip to content

Commit

Permalink
Merge pull request #25 from hackmdio/chore/testing
Browse files Browse the repository at this point in the history
Add options to return Axios response directly
  • Loading branch information
Yukaii authored Feb 16, 2023
2 parents 44c3f35 + 9eefacb commit 66fa86f
Show file tree
Hide file tree
Showing 12 changed files with 9,315 additions and 1,799 deletions.
7 changes: 5 additions & 2 deletions nodejs/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const path = require('path')

module.exports = {
/** @type {import('eslint').Linter.Config} */
const config = {
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
Expand All @@ -17,10 +18,12 @@ module.exports = {
},
"parserOptions": {
"project": [
path.resolve(__dirname, "tsconfig.json")
path.resolve(__dirname, "tsconfig.json"),
]
},
"ignorePatterns": [
".eslintrc.js"
],
}

module.exports = config
1 change: 1 addition & 0 deletions nodejs/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lts/hydrogen
11 changes: 11 additions & 0 deletions nodejs/jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import type { JestConfigWithTsJest } from "ts-jest"

const customJestConfig: JestConfigWithTsJest = {
preset: "ts-jest",
testEnvironment: "node",
transformIgnorePatterns: ["<rootDir>/node_modules/"],
extensionsToTreatAsEsm: [".ts"],
setupFiles: ["dotenv/config"],
}

export default customJestConfig
Loading

0 comments on commit 66fa86f

Please sign in to comment.