FEDX-121 The previous approach for handling NPM assets was to symlink them into the static directory. This appeared to cause trouble with the asset pipeline where the files in question were not installed and then old versions were picked up instead. This change instead copies NPM libraries to a new static directory so that the pipeline can consume them as with any other file. This new directory is added to .gitignore so that the files don't get accidentally checked in.
85 lines
2.3 KiB
YAML
85 lines
2.3 KiB
YAML
---
|
|
# JavaScript test suite description
|
|
#
|
|
#
|
|
# To run all the tests and print results to the console:
|
|
#
|
|
# js-test-tool run TEST_SUITE --use-firefox
|
|
#
|
|
# where `TEST_SUITE` is this file.
|
|
#
|
|
#
|
|
# To run the tests in your default browser ("dev mode"):
|
|
#
|
|
# js-test-tool dev TEST_SUITE
|
|
#
|
|
|
|
test_suite_name: common
|
|
|
|
test_runner: jasmine
|
|
|
|
# Path prepended to source files in the coverage report (optional)
|
|
# For example, if the source path
|
|
# is "src/source.js" (relative to this YAML file)
|
|
# and the prepend path is "base/dir"
|
|
# then the coverage report will show
|
|
# "base/dir/src/source.js"
|
|
prepend_path: common/static
|
|
|
|
# Paths to library JavaScript files (optional)
|
|
lib_paths:
|
|
- js/vendor/jquery.min.js
|
|
- js/vendor/jasmine-jquery.js
|
|
- js/vendor/jasmine-imagediff.js
|
|
- js/vendor/jquery.truncate.js
|
|
- js/vendor/mustache.js
|
|
- common/js/vendor/underscore.js
|
|
- js/vendor/underscore.string.min.js
|
|
- js/vendor/backbone-min.js
|
|
- js/vendor/jquery.timeago.js
|
|
- js/vendor/URI.min.js
|
|
- coffee/src/ajax_prefix.js
|
|
- js/test/add_ajax_prefix.js
|
|
- js/test/i18n.js
|
|
- coffee/src/jquery.immediateDescendents.js
|
|
|
|
# Paths to source JavaScript files
|
|
src_paths:
|
|
- js/xblock
|
|
- coffee/src
|
|
- js/src
|
|
- js/capa/src
|
|
|
|
# Paths to spec (test) JavaScript files
|
|
spec_paths:
|
|
- coffee/spec
|
|
- js/spec
|
|
- js/capa/spec
|
|
|
|
# Regular expressions used to exclude *.js files from
|
|
# appearing in the test runner page.
|
|
# Files are included by default, which means that they
|
|
# are loaded using a <script> tag in the test runner page.
|
|
# When loading many files, this can be slow, so
|
|
# exclude any files you don't need.
|
|
#exclude_from_page:
|
|
# - path/to/lib/include/exception_*.js
|
|
|
|
# Regular expression used to guarantee that a *.js file
|
|
# is included in the test runner page.
|
|
# If a file name matches both `exclude_from_page` and
|
|
# `include_in_page`, the file WILL be included.
|
|
# You can use this to exclude all files in a directory,
|
|
# but make an exception for particular files.
|
|
#include_in_page:
|
|
# - path/to/lib/exclude/exception_*.js
|
|
|
|
# Paths to fixture files (optional)
|
|
# You can access these within JavaScript code
|
|
# at the URL: document.location.href + "/include/"
|
|
# plus the path to the file (relative to this YAML file)
|
|
fixture_paths:
|
|
- js/fixtures
|
|
- js/capa/fixtures
|
|
- common/templates
|