Skip to content

Commit 366bf7e

Browse files
committed
Update tests
1 parent 7703fe7 commit 366bf7e

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

test/index.test.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,17 @@ import fs from 'node:fs/promises'
33
import test from 'ava'
44
import { testProp, fc } from '@fast-check/ava'
55
import { Arbitrary } from 'fast-check'
6-
import { type Plugin, type PluginContext } from 'rollup'
6+
import { type NormalizedInputOptions, type CustomPluginOptions, type ResolveIdResult } from 'rollup'
77
import externals, { type ExternalsOptions } from '../src/index'
88

9-
type TestedPlugin = Plugin & PluginContext
9+
type TestedPlugin = {
10+
buildStart: (options: NormalizedInputOptions) => void | Promise<void>
11+
resolveId: (source: string, importer?: string, options?: {
12+
assertions: Record<string, string>;
13+
custom?: CustomPluginOptions;
14+
isEntry: boolean;
15+
}) => ResolveIdResult | Promise<ResolveIdResult>
16+
}
1017

1118
// Returns an arbitrary for generating externals options objects
1219
const externalsOptionsArbitrary = (): Arbitrary<ExternalsOptions> => fc.record({

0 commit comments

Comments
 (0)