-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Setup vitest and ensure all whitelisted routes are in registry (#…
…395)
- Loading branch information
Showing
4 changed files
with
913 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { warpRouteConfigs } from '@hyperlane-xyz/registry'; | ||
import { assert, test } from 'vitest'; | ||
import { warpRouteWhitelist } from './warpRouteWhitelist'; | ||
|
||
test('warpRouteWhitelist', () => { | ||
if (!warpRouteWhitelist) return; | ||
for (const id of warpRouteWhitelist) { | ||
assert(warpRouteConfigs[id], `No route with id ${id} found in registry.`); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import tsconfigPaths from 'vite-tsconfig-paths'; | ||
import { defineConfig } from 'vitest/config'; | ||
|
||
export default defineConfig({ | ||
plugins: [tsconfigPaths()], | ||
test: {}, | ||
}); |
Oops, something went wrong.