Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
wldeh committed Mar 19, 2024
2 parents d6728f5 + d665394 commit 36ee04d
Show file tree
Hide file tree
Showing 4 changed files with 855 additions and 5 deletions.
7 changes: 7 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
presets: [
'@babel/preset-env',
'@babel/preset-typescript',
],
};

20 changes: 17 additions & 3 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
module.exports = {
export default {
preset: 'ts-jest',
testEnvironment: 'node'
}
testEnvironment: 'node',
transform: {
'^.+\\.(ts|js|jsx|tsx)$': 'ts-jest',
},
transformIgnorePatterns: [
'node_modules/(?!(ky)/)',
],
coverageDirectory: './coverage/',
collectCoverage: true,
reporters: ["default", "jest-junit"],
coverageReporters: ["json", "lcov", "text", "clover"],
collectCoverageFrom: [
"src/**/*.{js,jsx,ts,tsx}",
"!**/node_modules/**",
],
};
12 changes: 10 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Instagram Graph API client",
"main": "build/index.js",
"types": "build/index.d.ts",
"type": "module",
"files": [
"build"
],
Expand All @@ -28,6 +29,7 @@
"scripts": {
"build": "tsup src/index.ts --dts --minify",
"test": "jest",
"test:coverage": "jest --coverage",
"format": "prettier --write \"src/**/*.ts\"",
"prepare": "husky install",
"pre-commit": "lint-staged",
Expand All @@ -41,17 +43,23 @@
"ky": "^0.33.3"
},
"devDependencies": {
"@babel/preset-env": "^7.23.9",
"@babel/preset-typescript": "^7.23.3",
"@jest/transform": "^29.7.0",
"@trivago/prettier-plugin-sort-imports": "^4.0.0",
"@types/jest": "^29.4.0",
"@types/node": "^18.11.9",
"@types/node-fetch": "^2.6.2",
"babel-jest": "^29.7.0",
"husky": "^7.0.4",
"jest": "^29.5.0",
"jest": "^29.7.0",
"jest-environment-node": "^29.7.0",
"jest-junit": "^16.0.0",
"lint-staged": "^13.0.3",
"np": "^7.6.4",
"npm-run-all": "^4.1.5",
"prettier": "^2.5.1",
"ts-jest": "^29.0.5",
"ts-jest": "^29.1.2",
"ts-node": "^10.9.1",
"tsup": "^6.5.0",
"tsx": "^3.12.1",
Expand Down
Loading

0 comments on commit 36ee04d

Please sign in to comment.