George Kalpakas dcd28b591d build(docs-infra): clean up and update dependencies to match latest CLI (#32980)
This commit includes the following types of changes:
- Remove unused dependencies.
- Move dev dependencies from `devDependencies` to `dependencies` (and
  vice versa for production dependencies).
- Update `@types/*`.
- Update dependencies to more closely match the dependencies installed
  by the latest CLI for new apps.

Also, ensured that the latest version of `webdriver-manager` (v12.1.7)
was installed for `protractor`, which correctly installs a ChromeDriver
version that is compatible with the latest version of Chrome.

PR Close #32980
2019-10-10 13:56:14 -07:00

22 lines
820 B
JavaScript

/*
* Use this script to run the tests for Firebase test utils.
*
* We cannot use `jasmine-ts`, because it does not support passing a glob pattern any more (see
* https://github.com/svi3c/jasmine-ts/issues/33#issuecomment-511374288) and thus requires a
* `jasmine.json` config file, which does not allow us to set the `projectBaseDir`. This in turn
* means that you have to run the command from a specific directory (so that the spec paths are
* resolved correctly).
*
* Using a file like this gives us full control.
*/
const Jasmine = require('jasmine');
const {join} = require('path');
const {register} = require('ts-node');
register({project: join(__dirname, 'tsconfig.json')});
const runner = new Jasmine({projectBaseDir: __dirname});
runner.loadConfig({spec_files: ['**/*.spec.ts']});
runner.execute();