Skip to content

Commit afa5f96

Browse files
committed
react-docgen is set to run against all jsx and js files, as a result jest test files will throw warnings. Add example ignore pattern that will prevent this and give users a starting point to setup their own ignore without having to determine the format / escaping
1 parent 75925fb commit afa5f96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

{{cookiecutter.project_shortname}}/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"validate-init": "python _validate_init.py",
1919
"prepublishOnly": "npm run validate-init",
2020
"build:js": "webpack --mode production",
21-
"build:backends": "dash-generate-components ./src/lib/components {{ cookiecutter.project_shortname }} -p package-info.json --r-prefix '{{ cookiecutter.r_prefix }}' --jl-prefix '{{ cookiecutter.jl_prefix }}'",
21+
"build:backends": "dash-generate-components ./src/lib/components {{ cookiecutter.project_shortname }} -p package-info.json --r-prefix '{{ cookiecutter.r_prefix }}' --jl-prefix '{{ cookiecutter.jl_prefix }}' --ignore \\.(test|spec)\\.",
2222
"build:backends-activated": "(. venv/bin/activate || venv\\scripts\\activate && npm run build:py_and_r)",
2323
"build": "npm run build:js && npm run build:backends",
2424
"build:activated": "npm run build:js && npm run build:backends-activated"

0 commit comments

Comments
 (0)