diff --git a/packages/backend/package.json b/packages/backend/package.json index 6e2fe2213..2b124aa65 100644 --- a/packages/backend/package.json +++ b/packages/backend/package.json @@ -19,16 +19,16 @@ "lint": "npm run lint:no-fix -- --fix", "lint-ci": "npm run lint:no-fix", "lint-staged": "lint-staged --no-stash", - "test-nest": "cross-env NODE_OPTIONS=--experimental-vm-modules,--experimental-global-customevent DEBUG=ipfs:*,backend:* node_modules/jest/bin/jest.js --detectOpenHandles --forceExit ./src/nest/**/*.spec.ts", - "test": "cross-env NODE_OPTIONS=--experimental-vm-modules,--experimental-global-customevent DEBUG=ipfs:*,backend:* jest --runInBand --verbose --testPathIgnorePatterns=\".src/(!?nodeTest*)|(.node_modules*)\" --", - "test-ci": "cross-env NODE_OPTIONS=--experimental-vm-modules,--experimental-global-customevent jest ./src/**/* --runInBand --colors --ci --silent --verbose --testPathIgnorePatterns=\".src/nest/(!?nodeTest*)|(.node_modules*)|src/nest/.*\\.tor.spec\\.(t|j)s|src/nest/ipfs-file-manager/big-files.long.spec.ts$\"", - "test-ci-tor": "cross-env NODE_OPTIONS=--experimental-vm-modules,--experimental-global-customevent jest --runInBand --colors --ci --silent --verbose --detectOpenHandles --forceExit ./src/nest/**/*.tor.spec.ts", - "test-ci-long-running": "cross-env DEBUG=backend:* NODE_OPTIONS=--experimental-vm-modules,--experimental-global-customevent jest --colors --ci --verbose ./src/nest/**/*.long.spec.ts", - "test-connect": "cross-env NODE_OPTIONS=--experimental-vm-modules,--experimental-global-customevent DEBUG='libp2p:websockets*' jest ./src/nodeTest/* --verbose", - "test-connect-ci": "cross-env NODE_OPTIONS=--experimental-vm-modules,--experimental-global-customevent jest ./src/nodeTest/* --colors --ci --silent --verbose", - "test-replication-no-tor": "cross-env NODE_OPTIONS=--experimental-vm-modules,--experimental-global-customevent ts-node -v && cross-env DEBUG='backend:dbSnap*,backend:localTest*' ts-node src/nodeTest/testReplicate.ts --nodesCount 1 --timeThreshold 200 --entriesCount 1000 --no-useTor", - "test-replication-tor": "cross-env NODE_OPTIONS=--experimental-vm-modules,--experimental-global-customevent cross-env DEBUG='backend:dbSnap*,backend:localTest*' ts-node src/nodeTest/testReplicate.ts --nodesCount 1 --timeThreshold 500 --entriesCount 1000 --useTor", - "test-it": "cross-env NODE_OPTIONS=--experimental-vm-modules,--experimental-global-customevent DEBUG=ipfs:*,backend:* node_modules/jest/bin/jest.js --runInBand --verbose --testPathIgnorePatterns=\".src/(!?nodeTest*)|(.node_modules*)\" --", + "test-nest": "cross-env NODE_OPTIONS=\"--experimental-vm-modules --experimental-global-customevent\" DEBUG=ipfs:*,backend:* node_modules/jest/bin/jest.js --detectOpenHandles --forceExit ./src/nest/**/*.spec.ts", + "test": "cross-env NODE_OPTIONS=\"--experimental-vm-modules --experimental-global-customevent\" DEBUG=ipfs:*,backend:* jest --runInBand --verbose --testPathIgnorePatterns=\".src/(!?nodeTest*)|(.node_modules*)\" --", + "test-ci": "cross-env NODE_OPTIONS=\"--experimental-vm-modules --experimental-global-customevent\" jest ./src/**/* --runInBand --colors --ci --silent --verbose --testPathIgnorePatterns=\".src/nest/(!?nodeTest*)|(.node_modules*)|src/nest/.*\\.tor.spec\\.(t|j)s|src/nest/ipfs-file-manager/big-files.long.spec.ts$\"", + "test-ci-tor": "cross-env NODE_OPTIONS=\"--experimental-vm-modules --experimental-global-customevent\" jest --runInBand --colors --ci --silent --verbose --detectOpenHandles --forceExit ./src/nest/**/*.tor.spec.ts", + "test-ci-long-running": "cross-env DEBUG=backend:* NODE_OPTIONS=\"--experimental-vm-modules --experimental-global-customevent\" jest --colors --ci --verbose ./src/nest/**/*.long.spec.ts", + "test-connect": "cross-env NODE_OPTIONS=\"--experimental-vm-modules --experimental-global-customevent\" DEBUG='libp2p:websockets*' jest ./src/nodeTest/* --verbose", + "test-connect-ci": "cross-env NODE_OPTIONS=\"--experimental-vm-modules --experimental-global-customevent\" jest ./src/nodeTest/* --colors --ci --silent --verbose", + "test-replication-no-tor": "cross-env NODE_OPTIONS=\"--experimental-vm-modules --experimental-global-customevent\" ts-node -v && cross-env DEBUG='backend:dbSnap*,backend:localTest*' ts-node src/nodeTest/testReplicate.ts --nodesCount 1 --timeThreshold 200 --entriesCount 1000 --no-useTor", + "test-replication-tor": "cross-env NODE_OPTIONS=\"--experimental-vm-modules --experimental-global-customevent\" cross-env DEBUG='backend:dbSnap*,backend:localTest*' ts-node src/nodeTest/testReplicate.ts --nodesCount 1 --timeThreshold 500 --entriesCount 1000 --useTor", + "test-it": "cross-env NODE_OPTIONS=\"--experimental-vm-modules --experimental-global-customevent\" DEBUG=ipfs:*,backend:* node_modules/jest/bin/jest.js --runInBand --verbose --testPathIgnorePatterns=\".src/(!?nodeTest*)|(.node_modules*)\" --", "rmDist": "rimraf lib/" }, "repository": { diff --git a/packages/state-manager/src/sagas/users/users.selectors.test.ts b/packages/state-manager/src/sagas/users/users.selectors.test.ts index f6e973e7a..0d49f6e86 100644 --- a/packages/state-manager/src/sagas/users/users.selectors.test.ts +++ b/packages/state-manager/src/sagas/users/users.selectors.test.ts @@ -78,7 +78,7 @@ describe('users selectors', () => { expect(usersData[alicePublicKey]).toMatchInlineSnapshot(` Object { "onionAddress": "nqnw4kc4c77fb47lk52m5l57h4tcxceo7ymxekfn7yh5m66t4jv2olad.onion", - "peerId": "12D3KooWCXzUw71ovvkDky6XkV57aCWUV9JhJoKhoqXa1gdhFNoL", + "peerId": "12D3KooWSYQf8zzr5rYnUdLxYyLzHruQHPaMssja1ADifGAcN3qY", "username": "alice", } `)