blob: 0dfb1f85c3e4e0267c4dbc74f4104f3420d4b047 [file] [log] [blame]
// Copyright 2019 The Chromium Authors
// 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);