docs-widgets.sh 713 B

1234567891011121314151617181920212223242526272829
  1. #!/usr/bin/env bash
  2. # Copyright Materialize, Inc. and contributors. All rights reserved.
  3. #
  4. # Use of this software is governed by the Business Source License
  5. # included in the LICENSE file at the root of this repository.
  6. #
  7. # As of the Change Date specified in that file, in accordance with
  8. # the Business Source License, use of this software will be governed
  9. # by the Apache License, Version 2.0.
  10. #
  11. # Example usages:
  12. #
  13. # $ ci/test/docs-widgets/docs-widgets.sh
  14. # This script is used to run tests for the Materialize Docs Widgets
  15. set -euo pipefail
  16. . misc/shlib/shlib.bash
  17. # Change to the script's directory
  18. cd "$(dirname "$0")"
  19. # Install the dependencies
  20. npm install
  21. # Run the tests
  22. npm run test -- --run