Skip to content

Commit

Permalink
Update to new monero-ts, upgrade jest
Browse files Browse the repository at this point in the history
  • Loading branch information
mainnet-pat authored and woodser committed Aug 29, 2024
1 parent 59fcbba commit 4f99d18
Show file tree
Hide file tree
Showing 6 changed files with 3,590 additions and 8,893 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Install node
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 18

- name: Install protoc-gen-grpc-web
run: |
Expand Down
42 changes: 42 additions & 0 deletions jest.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
module.exports = {
rootDir: "./",
preset: "ts-jest/presets/default-esm",
resolver: "ts-jest-resolver",
collectCoverage: false,
collectCoverageFrom: [
"**/*.{js,jsx,ts}",
"!**/node_modules/**",
],
coveragePathIgnorePatterns: [
".*/src/.*\\.d\\.ts",
".*/src/.*\\.test\\.{ts,js}",
".*/src/.*\\.test\\.headless\\.js",
],
roots: [
"<rootDir>/src",
],
testMatch: [
"**/__tests__/**/*.+(ts|tsx|js)",
"**/?(*.)+(spec|test).+(ts|tsx|js)",
],
transform: {
"^.+\\.tsx?$": [
"ts-jest",
{
useESM: true,
},
],
},
testEnvironment: "node",
verbose: true,
maxConcurrency: 1,
testTimeout: 180000,
testPathIgnorePatterns: [
"/node_modules/",
"/dist/",
],
globals: {
window: {},
XMLHttpRequest: require("node-xmlhttprequest").XMLHttpRequest,
},
};
Loading

0 comments on commit 4f99d18

Please sign in to comment.