Skip to content

Commit 91b288b

Browse files
committed
test: update coverage folder names
1 parent b4f68bc commit 91b288b

4 files changed

Lines changed: 6 additions & 8 deletions

File tree

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ Thumbs.db
5050
dist/temp
5151
dist/.temp
5252

53-
# ignore jest coverage
54-
coverage
55-
5653
# -------------------------
5754
# BEGIN Whitelisted Files
5855
# -------------------------

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"license": "MIT",
66
"scripts": {
77
"test": "./vendor/bin/phpunit --testdox",
8-
"coverage": "XDEBUG_MODE=coverage ./vendor/bin/phpunit --testdox",
8+
"test:coverage": "XDEBUG_MODE=coverage ./vendor/bin/phpunit --testdox",
99
"minimal": "./vendor/bin/phpunit"
1010
},
1111
"authors": [
@@ -30,4 +30,4 @@
3030
"phpunit/phpunit": "^9.5",
3131
"php-stubs/wordpress-stubs": "^6.8"
3232
}
33-
}
33+
}

jest.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
module.exports = {
33
testEnvironment: "node",
44
transform: {
5-
"^.+\.tsx?$": ["ts-jest",{}],
5+
"^.+\.tsx?$": ["ts-jest", {}],
66
},
7+
coverageDirectory: "./.coverage-jest",
78
};

phpunit.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
</exclude>
2020
<report>
2121
<text outputFile="php://stdout" showUncoveredFiles="true"/>
22-
<html outputDirectory="./.coverage"/>
23-
<clover outputFile="./.coverage/clover.xml"/>
22+
<html outputDirectory="./.coverage-phpunit"/>
23+
<clover outputFile="./.coverage-phpunit/clover.xml"/>
2424
</report>
2525
</coverage>
2626

0 commit comments

Comments
 (0)