Skip to content

Commit

Permalink
re-organize cli tests for better isolation
Browse files Browse the repository at this point in the history
  • Loading branch information
Elindorath committed Oct 4, 2021
1 parent f30c1c5 commit 57f669e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ dist/
# test artifacts
test/broccoli/src/locales
test/gulp/locales
test/cli/locales
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"scripts": {
"coverage": "nyc --reporter=lcov --reporter=text npm run test",
"test": "mocha -r @babel/register -r @babel/polyfill --recursive test/*.test.js test/**/*.test.js",
"test:cli": "yarn -s build && ./bin/cli.js -c test/i18next-parser.config.js",
"test:cli": "yarn -s build && ./bin/cli.js -c test/cli/i18next-parser.config.js",
"test:gulp": "yarn -s build && gulp --cwd test/gulp i18next",
"test:broccoli": "yarn -s build && broccoli build --brocfile-path test/broccoli/Brocfile.js",
"watch": "babel src -d dist -w",
Expand Down
File renamed without changes.
7 changes: 7 additions & 0 deletions test/cli/i18next-parser.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const path = require('path')

module.exports = {
input: ['**/*.html'],
output: path.resolve(__dirname, 'locales/$LOCALE/$NAMESPACE.json'),
sort: true,
}
3 changes: 0 additions & 3 deletions test/i18next-parser.config.js

This file was deleted.

0 comments on commit 57f669e

Please sign in to comment.