Skip to content

Commit

Permalink
feat: included settings to setup npm
Browse files Browse the repository at this point in the history
  • Loading branch information
frazarshad committed Mar 7, 2024
1 parent d49d84e commit d1e225a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
9 changes: 9 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.github
.env
.dockerignore
docker
docs
downloads
images
tests
tools
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@synthetixio/synpress",
"version": "3.7.2-beta.9",
"name": "@agoric/synpress",
"version": "3.7.2-dev",
"description": "Synpress is e2e testing framework based around Cypress.io & playwright with included MetaMask support. Test your dapps with ease.",
"keywords": [
"Synpress",
Expand All @@ -9,17 +9,17 @@
"testing",
"e2e"
],
"homepage": "https://github.com/synthetixio/synpress#readme",
"homepage": "https://github.com/agoric-labs/synpress#readme",
"bugs": {
"url": "https://github.com/synthetixio/synpress/issues"
"url": "https://github.com/agoric-labs/synpress/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/synthetixio/synpress.git"
"url": "git+https://github.com/agoric-labs/synpress.git"
},
"license": "MIT",
"author": {
"name": "Synthetix"
"name": "agoric-labs"
},
"type": "commonjs",
"main": "launcher.js",
Expand All @@ -43,15 +43,15 @@
"start:contract": "cd tools/contract && pnpm start",
"start:ui": "cd tools/ui && pnpm dev",
"start:json-server": "json-server tools/json-server-db.json --port 3004",
"synpress:run:metamask": "EXTENSION=metamask SKIP_EXTENSION_SETUP=true SYNPRESS_LOCAL_TEST=true node synpress.js run --configFile=synpress.config.js",
"synpress:run:metamask": "CYPRESS_SPEC_PATTERN=tests/e2e/specs/metamask/** EXTENSION=metamask SKIP_EXTENSION_SETUP=true SYNPRESS_LOCAL_TEST=true node synpress.js run --configFile=synpress.config.js",
"test:e2e:metamask": "start-server-and-test 'pnpm start:server' http-get://localhost:3000 'pnpm synpress:run:metamask'",
"test:e2e:anvil": "start-server-and-test 'turbo start:server' http-get://localhost:3000 'CYPRESS_USE_ANVIL=true pnpm synpress:run'",
"test:e2e:headless": "start-server-and-test 'turbo start:server' http-get://localhost:3000 'pnpm synpress:run --headless'",
"test:e2e:headless:anvil": "start-server-and-test 'turbo start:server' http-get://localhost:3000 'CYPRESS_USE_ANVIL=true pnpm synpress:run --headless'",
"test:e2e:ci": "start-server-and-test 'VITE_LOCAL_ENV=agoric_chain pnpm start:ui' http-get://localhost:3000 'pnpm start:json-server' http-get://localhost:3004 'pnpm synpress:run --record --group'",
"test:e2e:ci:anvil": "start-server-and-test 'turbo start:server' http-get://localhost:3000 'CYPRESS_USE_ANVIL=true pnpm synpress:run --record --group'",
"test:e2e:ci:cypress-action": "CYPRESS_USE_ANVIL=true pnpm synpress:run",
"synpress:run:keplr": "EXTENSION=keplr SKIP_EXTENSION_SETUP=true SYNPRESS_LOCAL_TEST=true node synpress.js run --configFile=synpress.config.js",
"synpress:run:keplr": "CYPRESS_SPEC_PATTERN=tests/e2e/specs/keplr/** EXTENSION=keplr SKIP_EXTENSION_SETUP=true SYNPRESS_LOCAL_TEST=true node synpress.js run --configFile=synpress.config.js",
"test:e2e:keplr": "start-server-and-test 'pnpm start:ui' http-get://localhost:3000 'pnpm start:json-server' http-get://localhost:3004 'pnpm synpress:run:keplr'"
},
"dependencies": {
Expand Down
8 changes: 1 addition & 7 deletions synpress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ const fixturesFolder = `${synpressPath}/fixtures`;
log(`Detected synpress fixtures path is: ${fixturesFolder}`);
const supportFile = 'tests/e2e/support.js';


const specPattern = {
metamask: 'tests/e2e/specs/metamask/**/*.{js,jsx,ts,tsx}',
keplr : 'tests/e2e/specs/keplr/**/*.{js,jsx,ts,tsx}'
}

module.exports = defineConfig({
userAgent: 'synpress',
retries: {
Expand All @@ -39,7 +33,7 @@ module.exports = defineConfig({
testIsolation: false,
setupNodeEvents,
baseUrl: 'http://localhost:3000',
specPattern: specPattern[process.env.EXTENSION],
specPattern: 'tests/e2e/specs/**/*spec.{js,jsx,ts,tsx}',
supportFile,
},
component: {
Expand Down

0 comments on commit d1e225a

Please sign in to comment.