wallet-core/packages/taler-wallet-webextension/test.mjs

33 lines
1.0 KiB
JavaScript
Raw Permalink Normal View History

2023-05-30 19:59:03 +02:00
#!/usr/bin/env node
2022-03-11 15:14:27 +01:00
/*
This file is part of GNU Taler
2022-06-06 17:05:26 +02:00
(C) 2022 Taler Systems S.A.
2022-03-11 15:14:27 +01:00
GNU Taler is free software; you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation; either version 3, or (at your option) any later version.
GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
*/
2023-05-30 19:59:03 +02:00
import { build, getFilesInDirectory } from "@gnu-taler/web-util/build";
const allTestFiles = getFilesInDirectory("src", /.test.tsx?$/);
await build({
2023-06-01 14:29:08 +02:00
type: "test",
2023-05-30 19:59:03 +02:00
source: {
js: allTestFiles.files,
2023-06-01 14:29:08 +02:00
assets: [],
2023-05-30 19:59:03 +02:00
},
destination: "./dist/test",
css: "linaria",
2023-06-01 14:29:08 +02:00
// no need to produce css
// linariaPlugin: () => {},
2023-05-30 19:59:03 +02:00
});