Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: tt 266 add rejection functions #945

Merged
merged 8 commits into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# https://github.com/drptbl/synpress-setup-example/blob/1d980157ef343de54f786e1115e1da590f1ba1d1/Dockerfile#L1-L12
FROM synthetixio/docker-e2e:18.16-ubuntu as base
# FROM synthetixio/docker-e2e:18.16-ubuntu as base
FROM synthetixio/docker-e2e@sha256:d46dd0c38a4a6cf44355dbf583f3bb83c60e445c5508c10d7680c5a30dc81d8a as base

RUN mkdir /app
WORKDIR /app
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
command: >
bash -c 'echo -n "======> local noVNC URL:
http://localhost:8080/vnc.html?autoconnect=true " && npx wait-on
http://display:8080 && npm ci && npm run build:sitemap && npm run integration:headful'
http://display:8080 && npm ci && npx cypress install --force && npm run integration:headful'
networks:
- x11
display:
Expand Down
18 changes: 18 additions & 0 deletions hardhat.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
defaultNetwork: "hardhat",
networks: {
hardhat: {
chainId: 1337,
// mining: {
// auto: false,
// interval: 3000,
// },
accounts: {
mnemonic: "indicate swing place chair flight used hammer soon photo region volume shuffle",
},
throwOnTransactionFailures: false,
},
},
solidity: "0.8.17",
};
4 changes: 4 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ module.exports = {
"<rootDir>/_mocks_/fileMock.js",
"\\.(css|sass|scss)$": "identity-obj-proxy",
"^swiper/css(/.*)?$": "<rootDir>/_mocks_/fileMock.js",
"node:stream": "<rootDir>/node_modules/stream-browserify",
"node:util": "<rootDir>/node_modules/util",
"node:events": "<rootDir>/node_modules/events",
"node:process": "<rootDir>/node_modules/process",
},
testEnvironment: "jest-environment-jsdom",
setupFiles: ["<rootDir>/jest.setup.ts"],
Expand Down
6 changes: 6 additions & 0 deletions jest.setup.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import debug from "debug";
import { TextEncoder, TextDecoder } from "util";
Object.assign(global, {
TextDecoder,
TextEncoder,
});
// jest.setup.js

// Jest swallows stderr from debug, so if process is called with DEBUG then redirect debug to console.log
if (process.env.DEBUG) {
Expand Down
Loading
Loading