Skip to content

Commit ed55f2f

Browse files
committed
refactor tests to work better with latest mocha and node
No more mixed imports/requires
1 parent 0f6cc24 commit ed55f2f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+571
-560
lines changed

.mocharc.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
require: '@babel/register'
1+
ignore:
2+
- 'test/qunit/*'
3+
- 'test/conf.js'
4+
- 'test/*.conf.js'

babel.config.js

Lines changed: 0 additions & 24 deletions
This file was deleted.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"lint": "eslint .",
1919
"format": "prettier --plugin-search-dir . --write .",
2020
"prepack": "npm run prepack --workspaces",
21-
"test": "mocha test/index.js",
21+
"pretest": "npm run build --workspace linkifyjs --silent",
22+
"test": "mocha --file test/setup.js --recursive",
2223
"test:coverage": "nyc --reporter=lcov --reporter=text mocha test/index.js",
2324
"test:ci": "run-s test:ci1 test:ci2",
2425
"test:ci1": "karma start test/ci1.conf.js --single-run",

packages/linkify-element/babel.config.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/linkify-html/babel.config.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/linkify-jquery/babel.config.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/linkify-plugin-hashtag/babel.config.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/linkify-plugin-ip/babel.config.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/linkify-plugin-keyword/babel.config.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/linkify-plugin-mention/babel.config.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)