Skip to content

Commit

Permalink
fixing test runner dependencies and adding first test
Browse files Browse the repository at this point in the history
  • Loading branch information
pellicceama committed Jul 18, 2022
1 parent 7cca25e commit c031162
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 9 deletions.
17 changes: 16 additions & 1 deletion .pnp.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"command": "yarn test",
"name": "Run Tests",
"request": "launch",
"type": "node-terminal"
},
{
"type": "node",
"request": "launch",
Expand Down
Binary file not shown.
Binary file modified .yarn/install-state.gz
Binary file not shown.
6 changes: 6 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
nodeLinker: pnp

yarnPath: .yarn/releases/yarn-3.2.1.cjs

packageExtensions:
[email protected]:
dependencies:
"#ansi-styles": npm:[email protected]
"#supports-color": npm:[email protected]
7 changes: 7 additions & 0 deletions src/networks/index.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import test from 'ava';
import { getNetworks } from '.';

test('networks includes ethereum', async t => {
const networks = await getNetworks();
t.truthy(networks.find(n => n.name === 'ethereum'));
});
23 changes: 15 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,20 @@ __metadata:
version: 6
cacheKey: 8

"#ansi-styles@npm:[email protected], ansi-styles@npm:^6.0.0, ansi-styles@npm:^6.1.0":
version: 6.1.0
resolution: "ansi-styles@npm:6.1.0"
checksum: 7a7f8528c07a9d20c3a92bccd2b6bc3bb4d26e5cb775c02826921477377bd495d615d61f710d56216344b6238d1d11ef2b0348e146c5b128715578bfb3217229
languageName: node
linkType: hard

"#supports-color@npm:[email protected]":
version: 9.2.2
resolution: "supports-color@npm:9.2.2"
checksum: 976d84877402fc38c1d43b1fde20b0a8dc0283273f21cfebe4ff7507d27543cdfbeec7db108a96b82d694465f06d64e8577562b05d0520b41710088e0a33cc50
languageName: node
linkType: hard

"@babel/helper-validator-identifier@npm:^7.16.7":
version: 7.16.7
resolution: "@babel/helper-validator-identifier@npm:7.16.7"
Expand Down Expand Up @@ -97,7 +111,7 @@ __metadata:
typescript: ^4.7.4
uuid: ^8.3.2
bin:
assets-helper: dist/cli.js
assets-helper: dist/index.js
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -290,13 +304,6 @@ __metadata:
languageName: node
linkType: hard

"ansi-styles@npm:^6.0.0, ansi-styles@npm:^6.1.0":
version: 6.1.0
resolution: "ansi-styles@npm:6.1.0"
checksum: 7a7f8528c07a9d20c3a92bccd2b6bc3bb4d26e5cb775c02826921477377bd495d615d61f710d56216344b6238d1d11ef2b0348e146c5b128715578bfb3217229
languageName: node
linkType: hard

"anymatch@npm:~3.1.2":
version: 3.1.2
resolution: "anymatch@npm:3.1.2"
Expand Down

0 comments on commit c031162

Please sign in to comment.