ef5065de48
* feat: add token and nft injection * feat: basic tests * fix: get jest configured properly * fix: change timeout * fix: uninstall port ready * fix: readd port ready * fix: local tests work * fix: remove other stuff to make this pr smaller * fix: remove unneeded dependencies * fix: remove port-ready * Update yarn.lock * fix: add lint disable due to module exports for jest * fix: added waitPort * fix: deduplicated things? * Update package.json Co-authored-by: Zach Pomerantz <zzmp@uniswap.org> * update typing * change tests to typescript instead of javascript * changing typing of globalThis servers * yarn deduplicate * Update functions/global-teardown.ts Co-authored-by: Zach Pomerantz <zzmp@uniswap.org> * Update functions/global.d.ts Co-authored-by: Zach Pomerantz <zzmp@uniswap.org> * Update functions/tsconfig.json Co-authored-by: Zach Pomerantz <zzmp@uniswap.org> * Update functions/tsconfig.json Co-authored-by: Zach Pomerantz <zzmp@uniswap.org> * Update package.json Co-authored-by: Zach Pomerantz <zzmp@uniswap.org> * change dependencies to dev dependencies * final touches --------- Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
10 lines
208 B
TypeScript
10 lines
208 B
TypeScript
import { setup } from 'jest-dev-server'
|
|
|
|
module.exports = async function globalSetup() {
|
|
globalThis.servers = await setup({
|
|
command: `yarn start:cloud`,
|
|
port: 3000,
|
|
launchTimeout: 50000,
|
|
})
|
|
}
|