mirror of https://github.com/apache/druid.git
split web-console e2e-tests from unit tests (#10173)
* split web-console e2e-test from unit test * fix stuff * smaller change * oops
This commit is contained in:
parent
ebea73d081
commit
0a8fd62f22
|
@ -19,7 +19,4 @@
|
|||
module.exports = {
|
||||
"preset": "ts-jest",
|
||||
"testEnvironment": "jsdom",
|
||||
"testMatch": [
|
||||
"**/?(*.)+(spec).ts?(x)"
|
||||
],
|
||||
};
|
||||
|
|
|
@ -19,7 +19,10 @@
|
|||
const common = require('./jest.common.config');
|
||||
|
||||
module.exports = Object.assign(common, {
|
||||
"testMatch": [
|
||||
"**/?(*.)+(spec).ts?(x)"
|
||||
],
|
||||
"setupFilesAfterEnv": [
|
||||
"<rootDir>e2e-tests/util/setup.ts"
|
||||
]
|
||||
],
|
||||
});
|
||||
|
|
|
@ -28,4 +28,7 @@ module.exports = Object.assign(common, {
|
|||
"setupFilesAfterEnv": [
|
||||
"<rootDir>src/setup-tests.ts"
|
||||
],
|
||||
"testMatch": [
|
||||
"**/src/**/?(*.)+(spec).(ts|tsx)"
|
||||
],
|
||||
});
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "web-console",
|
||||
"version": "0.17.0",
|
||||
"version": "0.20.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"name": "web-console",
|
||||
"version": "0.17.0",
|
||||
"version": "0.20.0",
|
||||
"description": "A web console for Apache Druid",
|
||||
"author": "Imply Data Inc.",
|
||||
"author": "Apache Druid Developers <dev@druid.apache.org>",
|
||||
"license": "Apache-2.0",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
|
@ -125,6 +125,7 @@
|
|||
<goal>exec</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<environmentVariables><PATH>${project.build.directory}/node:${env.PATH}</PATH></environmentVariables>
|
||||
<executable>script/build</executable>
|
||||
</configuration>
|
||||
</execution>
|
||||
|
|
|
@ -19,13 +19,13 @@
|
|||
set -e
|
||||
|
||||
echo "Adding SQL docs..."
|
||||
PATH="./target/node:$PATH" ./script/create-sql-docs.js
|
||||
./script/create-sql-docs.js
|
||||
|
||||
echo "Transpiling ReactTable CSS..."
|
||||
PATH="./target/node:$PATH" ./node_modules/.bin/stylus lib/react-table.styl -o lib/react-table.css
|
||||
./node_modules/.bin/stylus lib/react-table.styl -o lib/react-table.css
|
||||
|
||||
# add BUNDLE_ANALYZER_PLUGIN='TRUE' here to enable webpack-bundle-analyzer as a plugin
|
||||
echo "Webpacking everything..."
|
||||
PATH="./target/node:$PATH" NODE_ENV=production ./node_modules/.bin/webpack -c webpack.config.js
|
||||
NODE_ENV=production ./node_modules/.bin/webpack -c webpack.config.js
|
||||
|
||||
echo "Done! Have a good day."
|
||||
|
|
|
@ -28,6 +28,6 @@
|
|||
<body class="bp3-dark mouse-mode">
|
||||
<div class="app-container"></div>
|
||||
<script src="console-config.js"></script>
|
||||
<script src="public/web-console-0.17.0.js"></script>
|
||||
<script src="public/web-console-0.20.0.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in New Issue