diff --git a/.gitignore b/.gitignore index ec1206b..922a232 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ coverage/ node_modules/ +*.d.ts *.log *.tgz jest-axios-snapshot.js diff --git a/jest-axios-snapshot.ts b/jest-axios-snapshot.ts index 5465e34..fdb12eb 100644 --- a/jest-axios-snapshot.ts +++ b/jest-axios-snapshot.ts @@ -75,6 +75,7 @@ function serializeResponse(response: AxiosResponse, toString: Stringify): string } /** + * @internal * @param actual - The actual value passed to expect. * @returns Whether or not the actual input is an axios response. */ @@ -115,6 +116,7 @@ let transformResponse = defaultTransformer; /** * Serialize an axios response as a string. * + * @internal * @param response - The axios response to serialize. * @param config - THe jest snapshot configuration. * @param indentation - The intentation to use for serializing entities. diff --git a/package.json b/package.json index 4db2dbd..6fd4b97 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,10 @@ "url": "https://github.com/remcohaszing/jest-axios-snapshot/issues" }, "homepage": "https://github.com/remcohaszing/jest-axios-snapshot#readme", - "files": [], + "files": [ + "jest-axios-snapshot.js", + "jest-axios-snapshot.d.ts" + ], "engines": { "node": ">=12" }, diff --git a/tsconfig.json b/tsconfig.json index a94d42b..2392919 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,11 +1,13 @@ { "compilerOptions": { + "declaration": true, "forceConsistentCasingInFileNames": true, "lib": ["esnext"], "module": "commonjs", "noEmit": true, "noImplicitAny": true, "strict": true, + "stripInternal": true, "target": "es2018" } }