Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
toandq2009 committed Jan 31, 2024
1 parent ef48998 commit 0d47bbf
Show file tree
Hide file tree
Showing 4 changed files with 191 additions and 45 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,6 @@ public/injected-provider.bundle.js

# for Yarn 3
.yarn
*.scss.d.ts
*.scss.d.ts
# Sentry Config File
.env.sentry-build-plugin
20 changes: 7 additions & 13 deletions config-overrides.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const { sentryWebpackPlugin } = require('@sentry/webpack-plugin');

const fs = require('fs');
const path = require('path');
const webpack = require('webpack');
Expand Down Expand Up @@ -50,6 +52,7 @@ const fixBabelRules = (config) => {

module.exports = {
fallback,

webpack: function (config, env) {
const isDevelopment = env === 'development';
fixBabelRules(config);
Expand Down Expand Up @@ -86,22 +89,12 @@ module.exports = {
}

if (!isDevelopment && process.env.SENTRY_AUTH_TOKEN) {
const SentryWebpackPlugin = require('@sentry/webpack-plugin');
config.devtool = 'source-map';
config.plugins.push(
new SentryWebpackPlugin({
org: 'oraichain',
project: 'oraidex',

// Specify the directory containing build artifacts
include: './build',

// Auth tokens can be obtained from https://sentry.io/settings/account/api/auth-tokens/
// and needs the `project:releases` and `org:read` scopes
sentryWebpackPlugin({
authToken: process.env.SENTRY_AUTH_TOKEN,

// Optionally uncomment the line below to override automatic release name detection
release: vendorHash
org: 'oraichain',
project: 'oraidex'
})
);
}
Expand All @@ -115,6 +108,7 @@ module.exports = {
return config;
// return rewiredEsbuild(config, env);
},

jest: (config) => {
config.setupFiles = ['<rootDir>/jest.setup.ts'];
return config;
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
"@cosmjs/tendermint-rpc": "^0.31.0",
"@duckdb/duckdb-wasm": "1.28.0",
"@injectivelabs/sdk-ts": "1.12.1",
"@leapwallet/cosmos-snap-provider": "0.1.25",
"@oraichain/common-contracts-sdk": "^1.0.31",
"@oraichain/ethereum-multicall": "^1.0.2",
"@oraichain/kawaiiverse-txs": "^0.0.3",
"@oraichain/oraidex-common-ui": "^1.0.4",
"@oraichain/oraidex-contracts-sdk": "^1.0.26",
"@oraichain/oraidex-universal-swap": "^1.0.49",
"@leapwallet/cosmos-snap-provider": "0.1.25",
"@reduxjs/toolkit": "^1.9.3",
"@sentry/react": "^7.47.0",
"@tanstack/react-query": "^4.32.6",
Expand Down Expand Up @@ -56,7 +56,7 @@
"@oraichain/common-contracts-build": "1.0.34",
"@oraichain/cw-simulate": "^2.8.75",
"@oraichain/oraidex-contracts-build": "^1.0.22",
"@sentry/webpack-plugin": "^1.20.0",
"@sentry/webpack-plugin": "^2.10.3",
"@types/classnames": "^2.2.10",
"@types/jest": "^29.5.10",
"@types/lodash": "^4.14.182",
Expand All @@ -82,7 +82,7 @@
},
"scripts": {
"start": "cross-env IMAGE_INLINE_SIZE_LIMIT=1000 GENERATE_SOURCEMAP=false react-app-rewired start",
"build": "cross-env IMAGE_INLINE_SIZE_LIMIT=1000 --max-old-space-size=8192 GENERATE_SOURCEMAP=false DISABLE_ESLINT_PLUGIN=true react-app-rewired build",
"build": "cross-env IMAGE_INLINE_SIZE_LIMIT=1000 GENERATE_SOURCEMAP=false DISABLE_ESLINT_PLUGIN=true react-app-rewired build",
"test": "react-app-rewired test --watchAll",
"test:ci": "react-app-rewired test --watchAll=false",
"ts-check": "tsc --noEmit",
Expand Down
Loading

0 comments on commit 0d47bbf

Please sign in to comment.