Skip to content

Commit 759d7bc

Browse files
committed
Configure coverage.
1 parent 7ea9b7e commit 759d7bc

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

vitest.config.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
Copyright 2025 Adobe. All rights reserved.
3+
This file is licensed to you under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License. You may obtain a copy
5+
of the License at http://www.apache.org/licenses/LICENSE-2.0
6+
7+
Unless required by applicable law or agreed to in writing, software distributed under
8+
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9+
OF ANY KIND, either express or implied. See the License for the specific language
10+
governing permissions and limitations under the License.
11+
*/
12+
// eslint-disable-next-line import/no-unresolved
13+
import { defineProject } from 'vitest/config';
14+
15+
export default defineProject({
16+
test: {
17+
name: 'unit-tests',
18+
isolate: false,
19+
coverage: {
20+
reporter: ['html', 'lcov', 'text', 'json']
21+
}
22+
}
23+
});

0 commit comments

Comments
 (0)