Skip to content

Commit b7a42c7

Browse files
committed
chore(plugin-doc-coverage): use new path matching helpers
1 parent 7fc7c2e commit b7a42c7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

packages/plugin-doc-coverage/src/lib/runner/doc-processer.integration.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe('processDocCoverage', () => {
1111
nodesCount: 1,
1212
issues: [
1313
{
14-
file: expect.stringMatching(/classes-coverage\.ts$/),
14+
file: expect.pathToEndWith('classes-coverage.ts'),
1515
type: 'classes',
1616
name: 'ExampleClass',
1717
line: 1,
@@ -44,7 +44,7 @@ describe('processDocCoverage', () => {
4444
nodesCount: 1,
4545
issues: [
4646
{
47-
file: expect.stringMatching(/methods-coverage\.ts$/),
47+
file: expect.pathToEndWith('methods-coverage.ts'),
4848
type: 'methods',
4949
name: 'exampleMethod',
5050
line: 5,
@@ -77,7 +77,7 @@ describe('processDocCoverage', () => {
7777
nodesCount: 1,
7878
issues: [
7979
{
80-
file: expect.stringMatching(/interfaces-coverage\.ts$/),
80+
file: expect.pathToEndWith('interfaces-coverage.ts'),
8181
type: 'interfaces',
8282
name: 'ExampleInterface',
8383
line: 1,
@@ -110,7 +110,7 @@ describe('processDocCoverage', () => {
110110
nodesCount: 1,
111111
issues: [
112112
{
113-
file: expect.stringMatching(/variables-coverage\.ts$/),
113+
file: expect.pathToEndWith('variables-coverage.ts'),
114114
type: 'variables',
115115
name: 'exampleVariable',
116116
line: 1,
@@ -143,7 +143,7 @@ describe('processDocCoverage', () => {
143143
nodesCount: 1,
144144
issues: [
145145
{
146-
file: expect.stringMatching(/properties-coverage\.ts$/),
146+
file: expect.pathToEndWith('properties-coverage.ts'),
147147
type: 'properties',
148148
name: 'exampleProperty',
149149
line: 5,
@@ -176,7 +176,7 @@ describe('processDocCoverage', () => {
176176
nodesCount: 1,
177177
issues: [
178178
{
179-
file: expect.stringMatching(/types-coverage\.ts$/),
179+
file: expect.pathToEndWith('types-coverage.ts'),
180180
type: 'types',
181181
name: 'ExampleType',
182182
line: 1,
@@ -209,7 +209,7 @@ describe('processDocCoverage', () => {
209209
nodesCount: 1,
210210
issues: [
211211
{
212-
file: expect.stringMatching(/enums-coverage\.ts$/),
212+
file: expect.pathToEndWith('enums-coverage.ts'),
213213
type: 'enums',
214214
name: 'ExampleEnum',
215215
line: 1,

0 commit comments

Comments
 (0)