diff options
author | François Freitag <mail@franek.fr> | 2021-05-29 23:53:04 +0200 |
---|---|---|
committer | François Freitag <mail@franek.fr> | 2021-05-30 10:44:34 +0200 |
commit | b0847abcc2c55614050951264c906920abd7634f (patch) | |
tree | 2d5d91417b99fad42ca40a08c068d39468dceb7c /core/webpack.test.js | |
parent | 8b3fbe1f0631e9be0844e84210be51cc8a847efd (diff) | |
download | nextcloud-server-b0847abcc2c55614050951264c906920abd7634f.tar.gz nextcloud-server-b0847abcc2c55614050951264c906920abd7634f.zip |
Rewrite requesttoken.spec.js with Jest
[Jest](https://jestjs.io/) is a test runner that focuses on simplicity.
It instruments babel to transform modules and test them.
Using Jest simplifies the existing configuration and allows dropping a
bunch of workarounds, as well as following the shared Babel
configuration for new code.
Signed-off-by: François Freitag <mail@franek.fr>
Diffstat (limited to 'core/webpack.test.js')
-rw-r--r-- | core/webpack.test.js | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/core/webpack.test.js b/core/webpack.test.js deleted file mode 100644 index c68624f5d40..00000000000 --- a/core/webpack.test.js +++ /dev/null @@ -1,33 +0,0 @@ -/** - * @copyright 2018 Christoph Wurst <christoph@winzerhof-wurst.at> - * - * @author Christoph Wurst <christoph@winzerhof-wurst.at> - * @author John Molakvoæ <skjnldsv@protonmail.com> - * - * @license GNU AGPL version 3 or any later version - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program 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 Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - */ - -const { merge } = require('webpack-merge') -const common = require('./webpack.js') -// webpack.config.js -const nodeExternals = require('webpack-node-externals') - -module.exports = merge(common[0], { - mode: 'development', - devtool: 'inline-cheap-module-source-map', - externals: [nodeExternals()], -}) |