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 = {
|
module.exports = {
|
||||||
"preset": "ts-jest",
|
"preset": "ts-jest",
|
||||||
"testEnvironment": "jsdom",
|
"testEnvironment": "jsdom",
|
||||||
"testMatch": [
|
|
||||||
"**/?(*.)+(spec).ts?(x)"
|
|
||||||
],
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -19,7 +19,10 @@
|
||||||
const common = require('./jest.common.config');
|
const common = require('./jest.common.config');
|
||||||
|
|
||||||
module.exports = Object.assign(common, {
|
module.exports = Object.assign(common, {
|
||||||
|
"testMatch": [
|
||||||
|
"**/?(*.)+(spec).ts?(x)"
|
||||||
|
],
|
||||||
"setupFilesAfterEnv": [
|
"setupFilesAfterEnv": [
|
||||||
"<rootDir>e2e-tests/util/setup.ts"
|
"<rootDir>e2e-tests/util/setup.ts"
|
||||||
]
|
],
|
||||||
});
|
});
|
||||||
|
|
|
@ -28,4 +28,7 @@ module.exports = Object.assign(common, {
|
||||||
"setupFilesAfterEnv": [
|
"setupFilesAfterEnv": [
|
||||||
"<rootDir>src/setup-tests.ts"
|
"<rootDir>src/setup-tests.ts"
|
||||||
],
|
],
|
||||||
|
"testMatch": [
|
||||||
|
"**/src/**/?(*.)+(spec).(ts|tsx)"
|
||||||
|
],
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "web-console",
|
"name": "web-console",
|
||||||
"version": "0.17.0",
|
"version": "0.20.0",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
{
|
{
|
||||||
"name": "web-console",
|
"name": "web-console",
|
||||||
"version": "0.17.0",
|
"version": "0.20.0",
|
||||||
"description": "A web console for Apache Druid",
|
"description": "A web console for Apache Druid",
|
||||||
"author": "Imply Data Inc.",
|
"author": "Apache Druid Developers <dev@druid.apache.org>",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -125,6 +125,7 @@
|
||||||
<goal>exec</goal>
|
<goal>exec</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
|
<environmentVariables><PATH>${project.build.directory}/node:${env.PATH}</PATH></environmentVariables>
|
||||||
<executable>script/build</executable>
|
<executable>script/build</executable>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
|
|
|
@ -19,13 +19,13 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
echo "Adding SQL docs..."
|
echo "Adding SQL docs..."
|
||||||
PATH="./target/node:$PATH" ./script/create-sql-docs.js
|
./script/create-sql-docs.js
|
||||||
|
|
||||||
echo "Transpiling ReactTable CSS..."
|
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
|
# add BUNDLE_ANALYZER_PLUGIN='TRUE' here to enable webpack-bundle-analyzer as a plugin
|
||||||
echo "Webpacking everything..."
|
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."
|
echo "Done! Have a good day."
|
||||||
|
|
|
@ -28,6 +28,6 @@
|
||||||
<body class="bp3-dark mouse-mode">
|
<body class="bp3-dark mouse-mode">
|
||||||
<div class="app-container"></div>
|
<div class="app-container"></div>
|
||||||
<script src="console-config.js"></script>
|
<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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue