mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2024-10-01 01:35:42 -04:00
Update to new monero-ts, upgrade jest
This commit is contained in:
parent
59fcbbabbf
commit
4f99d1893d
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -30,7 +30,7 @@ jobs:
|
|||||||
- name: Install node
|
- name: Install node
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 18
|
||||||
|
|
||||||
- name: Install protoc-gen-grpc-web
|
- name: Install protoc-gen-grpc-web
|
||||||
run: |
|
run: |
|
||||||
|
42
jest.config.cjs
Normal file
42
jest.config.cjs
Normal file
@ -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,
|
||||||
|
},
|
||||||
|
};
|
7499
package-lock.json
generated
7499
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
18
package.json
18
package.json
@ -9,20 +9,11 @@
|
|||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepare": "scripts/build_protobuf.sh",
|
"prepare": "scripts/build_protobuf.sh",
|
||||||
"test": "node --no-experimental-fetch ./node_modules/.bin/jest",
|
"test": "node --no-experimental-fetch ./node_modules/.bin/jest --forceExit --detectOpenHandles",
|
||||||
"eslint": "eslint .",
|
"eslint": "eslint .",
|
||||||
"eslintfix": "eslint src/* --fix",
|
"eslintfix": "eslint src/* --fix",
|
||||||
"typedoc": "typedoc ./src/index.ts --entryPointStrategy expand src/ --exclude **/*.test.ts --excludePrivate"
|
"typedoc": "typedoc ./src/index.ts --entryPointStrategy expand src/ --exclude **/*.test.ts --excludePrivate"
|
||||||
},
|
},
|
||||||
"jest": {
|
|
||||||
"testPathIgnorePatterns": [
|
|
||||||
"<rootDir>/dist/",
|
|
||||||
"/node_modules/"
|
|
||||||
],
|
|
||||||
"globals": {
|
|
||||||
"window": {}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/haveno-dex/haveno-ts.git"
|
"url": "git+https://github.com/haveno-dex/haveno-ts.git"
|
||||||
@ -54,8 +45,11 @@
|
|||||||
"eslint-import-resolver-typescript": "^3.5.3",
|
"eslint-import-resolver-typescript": "^3.5.3",
|
||||||
"eslint-plugin-import": "^2.27.5",
|
"eslint-plugin-import": "^2.27.5",
|
||||||
"eslint-plugin-jsx-a11y": "^6.7.1",
|
"eslint-plugin-jsx-a11y": "^6.7.1",
|
||||||
"jest": "^26.6.0",
|
"jest": "^29.7.0",
|
||||||
"monero-ts": "^0.10.0",
|
"monero-ts": "^0.10.3",
|
||||||
|
"node-xmlhttprequest": "^1.0.6",
|
||||||
|
"ts-jest": "^29.2.5",
|
||||||
|
"ts-jest-resolver": "^2.0.1",
|
||||||
"typedoc": "^0.23.26",
|
"typedoc": "^0.23.26",
|
||||||
"typedoc-plugin-missing-exports": "^1.0.0",
|
"typedoc-plugin-missing-exports": "^1.0.0",
|
||||||
"typedoc-plugin-rename-defaults": "^0.6.4",
|
"typedoc-plugin-rename-defaults": "^0.6.4",
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// @ts-nocheck
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright Haveno
|
* Copyright Haveno
|
||||||
*
|
*
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// @ts-nocheck
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright Haveno
|
* Copyright Haveno
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user