Skip to content

Commit 0d0a640

Browse files
committed
Moved NPM modules to tests directory
1 parent a694c07 commit 0d0a640

File tree

5 files changed

+4
-6
lines changed

5 files changed

+4
-6
lines changed

.gitattributes

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
/README.md export-ignore
33
/composer.lock export-ignore
44
/docs export-ignore
5-
/package.json export-ignore
6-
/package-lock.json export-ignore
75
/phpunit.xml export-ignore
86
/scripts export-ignore
97
/tests export-ignore

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
/.*
2-
/node_modules
2+
/tests/node_modules
33
/vendor

tests/EmojiTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
*/
1515
class EmojiTest extends TestCase
1616
{
17-
protected string $emojiDir = __DIR__ . '/../node_modules/emoji-test-regex-pattern/dist/latest';
17+
protected string $emojiDir = __DIR__ . '/node_modules/emoji-test-regex-pattern/dist/latest';
1818

1919
protected function getEmoji(): array
2020
{
2121
if (!file_exists($this->emojiDir))
2222
{
23-
$this->markTestSkipped('Missing NPM module');
23+
$this->markTestSkipped('Missing NPM module in tests directory');
2424
}
2525

2626
return file($this->emojiDir . '/index-strings.txt', FILE_IGNORE_NEW_LINES);
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.

0 commit comments

Comments
 (0)