blob: 0dfb1f85c3e4e0267c4dbc74f4104f3420d4b047 [file] [log] [blame]
Adrià Vilanova Martínezf19ea432024-01-23 20:20:52 +01001// Copyright 2019 The Chromium Authors
Copybara854996b2021-09-07 19:36:02 +00002// 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);