Skip to content

Commit 80aa4a3

Browse files
committed
test(end-to-end): use testverse import
1 parent bdafbf8 commit 80aa4a3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/end-to-end/e2e-docs.test.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import { createWriteStream } from 'node:fs';
1414

1515
import { toAbsolutePath, toDirname, toPath } from '@-xun/fs';
1616
import { readJsonc, readXPackageJsonAtRoot } from '@-xun/project';
17-
import { extractExamplesFromDocument } from '@-xun/project-fs';
1817

1918
import {
2019
run as runYesRejectOnBadExit,
@@ -31,6 +30,7 @@ import {
3130
dummyFilesFixture,
3231
dummyNpmPackageFixture,
3332
ensurePackageHasBeenBuilt,
33+
extractExamplesFromDocument,
3434
mockFixturesFactory,
3535
npmCopyPackageFixture,
3636
reconfigureJestGlobalsToSkipTestsInThisFileIfRequested
@@ -136,7 +136,7 @@ describe('./README.md', () => {
136136
id: 1,
137137
stderr: '',
138138
exitCode: 0,
139-
stdout: expect.stringMatching(examplesRegExp.get('output-1')!)
139+
stdout: expect.stringMatching(examplesRegExp.get('output-1'))
140140
});
141141
}
142142

@@ -149,7 +149,7 @@ describe('./README.md', () => {
149149
id: 2,
150150
stderr: '',
151151
exitCode: 0,
152-
stdout: expect.stringMatching(examplesRegExp.get('output-2')!)
152+
stdout: expect.stringMatching(examplesRegExp.get('output-2'))
153153
});
154154
}
155155

@@ -162,7 +162,7 @@ describe('./README.md', () => {
162162
id: 3,
163163
stderr: '',
164164
exitCode: 0,
165-
stdout: expect.stringMatching(examplesRegExp.get('output-3')!)
165+
stdout: expect.stringMatching(examplesRegExp.get('output-3'))
166166
});
167167
}
168168

@@ -175,7 +175,7 @@ describe('./README.md', () => {
175175
id: 4,
176176
stderr: '',
177177
exitCode: 0,
178-
stdout: expect.stringMatching(examplesRegExp.get('output-4')!)
178+
stdout: expect.stringMatching(examplesRegExp.get('output-4'))
179179
});
180180
}
181181

@@ -188,7 +188,7 @@ describe('./README.md', () => {
188188
id: 5,
189189
stdout: '',
190190
exitCode: 1,
191-
stderr: expect.stringMatching(examplesRegExp.get('output-5')!)
191+
stderr: expect.stringMatching(examplesRegExp.get('output-5'))
192192
});
193193
}
194194

@@ -201,7 +201,7 @@ describe('./README.md', () => {
201201
id: 6,
202202
stderr: '',
203203
exitCode: 0,
204-
stdout: expect.stringMatching(examplesRegExp.get('output-6')!)
204+
stdout: expect.stringMatching(examplesRegExp.get('output-6'))
205205
});
206206
}
207207
},

0 commit comments

Comments
 (0)