Skip to content

Commit

Permalink
build: fix unresolved build
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Jan 21, 2023
1 parent 55c184d commit a833777
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions packages/vitest/src/node/reporters/junit.ts
Expand Up @@ -2,8 +2,10 @@ import { existsSync, promises as fs } from 'node:fs'
import { hostname } from 'node:os'
import { dirname, relative, resolve } from 'pathe'

import type { Task } from '@vitest/runner'
import type { ErrorWithDiff } from '@vitest/runner/utils'
import type { Vitest } from '../../node'
import type { ErrorWithDiff, Reporter, Task } from '../../types'
import type { Reporter } from '../../types/reporter'
import { parseStacktrace } from '../../utils/source-map'
import { F_POINTER } from '../../utils/figures'
import { getOutputFile } from '../../utils/config-helpers'
Expand Down Expand Up @@ -99,7 +101,7 @@ export class JUnitReporter implements Reporter {
}

async writeElement(name: string, attrs: Record<string, any>, children: () => Promise<void>) {
const pairs = []
const pairs: string[] = []
for (const key in attrs) {
const attr = attrs[key]
if (attr === undefined)
Expand Down
2 changes: 1 addition & 1 deletion packages/vitest/src/node/reporters/tap-flat.ts
@@ -1,5 +1,5 @@
import type { Task } from '@vitest/runner'
import type { Vitest } from '../../node'
import type { Task } from '../../types'
import { TapReporter } from './tap'

function flattenTasks(task: Task, baseName = ''): Task[] {
Expand Down
4 changes: 3 additions & 1 deletion packages/vitest/src/node/reporters/tap.ts
@@ -1,5 +1,7 @@
import type { Task } from '@vitest/runner'
import type { ParsedStack } from '@vitest/runner/utils'
import type { Vitest } from '../../node'
import type { ParsedStack, Reporter, Task } from '../../types'
import type { Reporter } from '../../types/reporter'
import { parseStacktrace } from '../../utils/source-map'
import { IndentedLogger } from './renderers/indented-logger'

Expand Down
2 changes: 1 addition & 1 deletion packages/web-worker/rollup.config.js
Expand Up @@ -44,7 +44,7 @@ export default () => [
plugins,
},
{
input: entries,
input: 'src/pure.ts',
output: {
dir: process.cwd(),
entryFileNames: '[name].d.ts',
Expand Down

0 comments on commit a833777

Please sign in to comment.