Import Instagram archive to a Bluesky account
9
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add Jest configuration and TypeScript test setup

- Create jest.config.ts for Jest testing configuration
- Add tsconfig.jest.json for Jest-specific TypeScript compiler options
- Install tsconfig-paths to support module path resolution in tests
- Update package.json and package-lock.json with new dev dependencies

+49 -9
-9
jest.config.js
··· 1 - module.exports = { 2 - preset: 'ts-jest', 3 - testEnvironment: 'node', 4 - roots: ['<rootDir>/src'], 5 - testMatch: ['**/*.test.ts'], 6 - transform: { 7 - '^.+\\.tsx?$': 'ts-jest' 8 - } 9 - };
+14
jest.config.ts
··· 1 + export default { 2 + preset: 'ts-jest', 3 + testEnvironment: 'node', 4 + roots: ['<rootDir>/src'], 5 + testMatch: ['**/*.test.ts'], 6 + transform: { 7 + '^.+\\.tsx?$': [ 8 + 'ts-jest', 9 + { 10 + tsconfig: 'tsconfig.jest.json' 11 + } 12 + ] 13 + } 14 + };
+24
package-lock.json
··· 26 26 "@types/node": "^22.10.10", 27 27 "ts-jest": "^29.2.5", 28 28 "ts-node": "^10.9.2", 29 + "tsconfig-paths": "^4.2.0", 29 30 "typescript": "^5.0.0" 30 31 }, 31 32 "engines": { ··· 4731 4732 "@swc/wasm": { 4732 4733 "optional": true 4733 4734 } 4735 + } 4736 + }, 4737 + "node_modules/tsconfig-paths": { 4738 + "version": "4.2.0", 4739 + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-4.2.0.tgz", 4740 + "integrity": "sha512-NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg==", 4741 + "dev": true, 4742 + "dependencies": { 4743 + "json5": "^2.2.2", 4744 + "minimist": "^1.2.6", 4745 + "strip-bom": "^3.0.0" 4746 + }, 4747 + "engines": { 4748 + "node": ">=6" 4749 + } 4750 + }, 4751 + "node_modules/tsconfig-paths/node_modules/strip-bom": { 4752 + "version": "3.0.0", 4753 + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", 4754 + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", 4755 + "dev": true, 4756 + "engines": { 4757 + "node": ">=4" 4734 4758 } 4735 4759 }, 4736 4760 "node_modules/tslib": {
+1
package.json
··· 33 33 "@types/node": "^22.10.10", 34 34 "ts-jest": "^29.2.5", 35 35 "ts-node": "^10.9.2", 36 + "tsconfig-paths": "^4.2.0", 36 37 "typescript": "^5.0.0" 37 38 } 38 39 }
+10
tsconfig.jest.json
··· 1 + { 2 + "extends": "./tsconfig.json", 3 + "compilerOptions": { 4 + "types": ["jest", "node"], 5 + "isolatedModules": true, 6 + "esModuleInterop": true 7 + }, 8 + "include": ["src/**/*.test.ts"], 9 + "exclude": ["node_modules"] 10 + }