Skip to content

Commit

Permalink
Bumped pino-abstract-transport v1.0.0 (#354)
Browse files Browse the repository at this point in the history
* Bumped pino-abstract-transport v1.0.0

Signed-off-by: Matteo Collina <hello@matteocollina.com>

* debug

Signed-off-by: Matteo Collina <hello@matteocollina.com>

* more debug

Signed-off-by: Matteo Collina <hello@matteocollina.com>

* more fix

* more update

Signed-off-by: Matteo Collina <hello@matteocollina.com>

* fixup

* fixup
  • Loading branch information
mcollina committed Jun 22, 2022
1 parent fa83ee1 commit ca8a85b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"pino-pretty": "./bin.js"
},
"scripts": {
"ci": "standard && tap --color --coverage-report=lcovonly && npm run test-types",
"ci": "standard && tap --coverage-report=lcovonly && npm run test-types",
"lint": "standard | snazzy",
"test": "tap --100 --color",
"test-types": "tsc && tsd"
Expand Down Expand Up @@ -39,7 +39,7 @@
"fast-safe-stringify": "^2.1.1",
"joycon": "^3.1.1",
"on-exit-leak-free": "^1.0.0",
"pino-abstract-transport": "^0.5.0",
"pino-abstract-transport": "^1.0.0",
"pump": "^3.0.0",
"readable-stream": "^4.0.0",
"secure-json-parse": "^2.4.0",
Expand Down
24 changes: 21 additions & 3 deletions test/cli-rc.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,13 @@ test('cli', (t) => {
const env = { TERM: 'dumb' }
const child = spawn(process.argv[0], args, { env, cwd: tmpDir })
child.on('close', (code) => t.equal(code, 1))
child.stderr.on('data', (data) => {
child.stdout.pipe(process.stdout)
child.stderr.setEncoding('utf8')
let data = ''
child.stderr.on('data', (chunk) => {
data += chunk
})
child.on('close', function () {
t.equal(
data.toString().indexOf('Error: Failed to load runtime configuration file: pino-pretty.config.missing.json') >= 0,
true
Expand All @@ -201,7 +207,13 @@ test('cli', (t) => {
const env = { TERM: 'dumb' }
const child = spawn(process.argv[0], [bin], { env, cwd: tmpDir })
child.on('close', (code) => t.equal(code, 1))
child.stderr.on('data', (data) => {
child.stdout.pipe(process.stdout)
child.stderr.setEncoding('utf8')
let data = ''
child.stderr.on('data', (chunk) => {
data += chunk
})
child.on('close', function () {
t.equal(data.indexOf('Error: Invalid runtime configuration file: pino-pretty.config.js') >= 0, true)
})
t.teardown(() => child.kill())
Expand All @@ -215,7 +227,13 @@ test('cli', (t) => {
const env = { TERM: 'dumb' }
const child = spawn(process.argv[0], args, { env, cwd: tmpDir })
child.on('close', (code) => t.equal(code, 1))
child.stderr.on('data', (data) => {
child.stdout.pipe(process.stdout)
child.stderr.setEncoding('utf8')
let data = ''
child.stderr.on('data', (chunk) => {
data += chunk
})
child.on('close', function () {
t.equal(data.indexOf('Error: Invalid runtime configuration file: pino-pretty.config.invalid.js') >= 0, true)
})
t.teardown(() => child.kill())
Expand Down

0 comments on commit ca8a85b

Please sign in to comment.