Skip to content

Add options to return Axios response directly #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Feb 16, 2023
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