blob: e38c23ab65553e05b4df01ed781bb110d2e17644 [file] [log] [blame]
Copybara854996b2021-09-07 19:36:02 +00001// Copyright 2019 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5/**
6 * @fileoverview Root file for running our frontend tests. Finds all files
7 * in the static_src folder that have the ".test.js" or ".test.ts" extension.
8 */
9
10import chai from 'chai';
11import chaiDom from 'chai-dom';
12import chaiString from 'chai-string';
13
14chai.use(chaiDom);
15chai.use(chaiString);
16
17const testsContext = require.context('../', true, /\.test\.(js|ts|tsx)$/);
18testsContext.keys().forEach(testsContext);