Skip to content

Commit

Permalink
Merge pull request #190 from ensdomains/cleanup-test-env
Browse files Browse the repository at this point in the history
use `node:` protocol in ens-test-env
  • Loading branch information
talentlessguy authored Aug 23, 2024
2 parents 528bacb + 47a14f1 commit 88670da
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 54 deletions.
3 changes: 0 additions & 3 deletions packages/ens-test-env/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ module.exports = {
mnemonic: 'test test test test test test test test test test test junk',
unlockedAccounts: ['0x0000000000000000000000000000000000000000'],
},
database: {
dbPath: './ganache',
},
},
graph: {
bypassLocal: false,
Expand Down
1 change: 0 additions & 1 deletion packages/ens-test-env/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"concurrently": "^7.1.0",
"docker-compose": "^0.24.7",
"dotenv": "^16.0.1",
"ganache": "^7.0.4",
"js-yaml": "^4.1.0",
"lz4": "^0.6.5",
"progress-stream": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/ens-test-env/src/config.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ConcurrentlyCommandInput } from 'concurrently'
import type { ConcurrentlyCommandInput } from 'concurrently'

/**
* ens-test-env configuration object
Expand Down
4 changes: 1 addition & 3 deletions packages/ens-test-env/src/fetch-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ import lz4 from 'lz4'
import progress from 'progress-stream'
import { pipeline } from 'stream'
import tar from 'tar-fs'
import { promisify } from 'util'

const __dirname = process.env.INIT_CWD
import { promisify } from 'node:util'

const createProgressBar = (name, hasSpeed) =>
new cliProgress.SingleBar({
Expand Down
7 changes: 3 additions & 4 deletions packages/ens-test-env/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,16 @@
/* eslint-disable */

import { Command, Option } from 'commander'
import path from 'path'
import { emitKeypressEvents } from 'readline'
import { URL as URLClass } from 'url'
import path from 'node:path'
import { emitKeypressEvents } from 'node:readline'
import { main as fetchData } from './fetch-data.js'
import { main as manager } from './manager.js'
import { main as subgraph } from './subgraph.js'

let config
const program = new Command()

const __dirname = new URLClass('.', import.meta.url).pathname
const __dirname = new URL('.', import.meta.url).pathname
const cwd = process.cwd()

program
Expand Down
4 changes: 2 additions & 2 deletions packages/ens-test-env/src/manager.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/* eslint-disable */
import { spawn } from 'child_process'
import { spawn } from 'node:child_process'
import concurrently from 'concurrently'
import composev1 from 'docker-compose'
import composev2 from 'docker-compose/dist/v2.js'
import { Transform } from 'stream'
import { Transform } from 'node:stream'
import waitOn from 'wait-on'
import { main as fetchData } from './fetch-data.js'

Expand Down
2 changes: 1 addition & 1 deletion packages/ens-test-env/src/subgraph.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { config } from 'dotenv'
import fs from 'node:fs'
import yaml from 'js-yaml'
import path from 'path'
import path from 'node:path'

export const main = (options) => {
const directory = path.resolve(process.cwd(), options.directory)
Expand Down
39 changes: 0 additions & 39 deletions pnpm-lock.yaml

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

0 comments on commit 88670da

Please sign in to comment.