Closed BrodyHughes closed 4 days ago
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: npm/@types/chai-subset@1.3.3, npm/@vitest/expect@0.34.6, npm/@vitest/runner@0.34.6, npm/@vitest/snapshot@0.34.6, npm/@vitest/spy@0.34.6, npm/@vitest/utils@0.34.6, npm/local-pkg@0.4.3, npm/magic-string@0.30.1, npm/strip-literal@1.0.1, npm/tinybench@2.5.0, npm/tinypool@0.7.0, npm/tinyspy@2.1.1, npm/vite-node@0.34.6, npm/vitest@0.34.6, npm/why-is-node-running@2.2.2
closed in favor of: https://github.com/rainbow-me/browser-extension/pull/1754
This PR sets up mocking for swaps endpoints in our e2e flow. This will require a swaps SDK bump which is in progress.
Changes:
/TEST
directory are not meant to be merged but include request URLs and a function to return responses from those requests. This should be removed before being merged in the final version of the PR. These responses were recorded during this block: 20923142e2e/mockServer.js
is the mock server ande2e/mockServer.d.ts
is its type declarations. This server should recieve responses onlocalHost:3000
and return the correct responses that are located in thee2e/responses/
filee2e/responses/
includes all swap responses that take place during our tests that were returned from the/TEST/script.py
function. These are the actual mocks.e2e/setup.ts
file was created to start and stop the server before and after all serial tests respectively.serial/vitest.config.ts
file tells this file to run before the serial tests