blob: e38c23ab65553e05b4df01ed781bb110d2e17644 [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Root file for running our frontend tests. Finds all files
* in the static_src folder that have the ".test.js" or ".test.ts" extension.
*/
import chai from 'chai';
import chaiDom from 'chai-dom';
import chaiString from 'chai-string';
chai.use(chaiDom);
chai.use(chaiString);
const testsContext = require.context('../', true, /\.test\.(js|ts|tsx)$/);
testsContext.keys().forEach(testsContext);