Skip to content

Commit

Permalink
call default ctor and remove redundant package
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjgoss committed Jan 22, 2025
1 parent 3f938cb commit c129491
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 28 deletions.
20 changes: 0 additions & 20 deletions package-lock.json

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

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@
"mz": "^2.7.0",
"progress": "^2.0.3",
"read-package-up": "^11.0.0",
"resolve-pkg": "^2.0.0",
"semver": "7.5.3",
"string-argv": "0.3.1",
"supports-color": "^8.1.1",
Expand Down
8 changes: 1 addition & 7 deletions src/formatter/builtin/html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { finished } from 'node:stream'
import { writeFile } from 'node:fs'
import path from 'node:path'
import { CucumberHtmlStream } from '@cucumber/html-formatter'
import resolvePkg from 'resolve-pkg'
import mimeTypes from 'mime'
import {
Attachment,
Expand All @@ -26,12 +25,7 @@ export default {
)
}
const newId = IdGenerator.uuid()
const htmlStream = new CucumberHtmlStream(
resolvePkg('@cucumber/html-formatter', { cwd: __dirname }) +
'/dist/main.css',
resolvePkg('@cucumber/html-formatter', { cwd: __dirname }) +
'/dist/main.js'
)
const htmlStream = new CucumberHtmlStream()
const writeOperations: Promise<void>[] = []
on('message', (message) => {
if (message.attachment && options.externalAttachments) {
Expand Down

0 comments on commit c129491

Please sign in to comment.