run plugin api tests in default flow

apitest
filip mertens 2 years ago
parent bff4f2940b
commit 498c29ce80
  1. 3
      .circleci/config.yml
  2. 9
      apps/remix-ide-e2e/src/local-plugin/.babelrc
  3. 2
      apps/remix-ide-e2e/src/local-plugin/project.json
  4. 21
      apps/remix-ide-e2e/src/local-plugin/webpack.config.js
  5. 0
      apps/remix-ide-e2e/src/tests/plugin_api.test.ts
  6. 1
      apps/remix-ide/ci/browser_test.sh

@ -153,7 +153,6 @@ jobs:
parameters: parameters:
script: script:
type: string type: string
parallelism: 4
steps: steps:
- browser-tools/install-browser-tools: - browser-tools/install-browser-tools:
install-firefox: false install-firefox: false
@ -286,7 +285,7 @@ workflows:
- build - build
matrix: matrix:
parameters: parameters:
script: ["browser_tests_plugin_api.sh", "browser_tests_etherscan_plugin.sh", "browser_tests_vyper_plugin.sh"] script: ["browser_tests_etherscan_plugin.sh", "browser_tests_vyper_plugin.sh"]
- remix-ide-browser: - remix-ide-browser:
requires: requires:
- build - build

@ -1,4 +1,9 @@
{ {
"presets": ["@nrwl/react/babel"], "presets": ["@babel/preset-env", ["@babel/preset-react",
"plugins": [] {"runtime": "automatic"}
]],
"plugins": ["@babel/plugin-proposal-class-properties", "@babel/plugin-transform-runtime", "@babel/plugin-proposal-nullish-coalescing-operator"],
"ignore": [
"**/node_modules/**"
]
} }

@ -25,7 +25,7 @@
"apps/remix-ide-e2e/src/local-plugin/src/styles.css" "apps/remix-ide-e2e/src/local-plugin/src/styles.css"
], ],
"scripts": [], "scripts": [],
"webpackConfig": "@nrwl/react/plugins/webpack" "webpackConfig": "apps/remix-ide-e2e/src/local-plugin/webpack.config.js"
}, },
"configurations": { "configurations": {
"development": { "development": {

@ -0,0 +1,21 @@
const { composePlugins, withNx } = require('@nrwl/webpack')
// Nx plugins for webpack.
module.exports = composePlugins(withNx(), (config) => {
// Update the webpack config as needed here.
// e.g. `config.plugins.push(new MyPlugin())`
// add public path
config.output.publicPath = '/'
// souce-map loader
config.module.rules.push({
test: /\.js$/,
use: ["source-map-loader"],
enforce: "pre"
})
config.ignoreWarnings = [/Failed to parse source map/] // ignore source-map-loader warnings
return config;
});

@ -9,6 +9,7 @@ echo "$BUILD_ID"
TEST_EXITCODE=0 TEST_EXITCODE=0
yarn run ganache-cli & yarn run ganache-cli &
npx http-server -p 9090 --cors='*' ./node_modules & npx http-server -p 9090 --cors='*' ./node_modules &
npx nx serve remix-ide-e2e-src-local-plugin &
yarn run serve:production & yarn run serve:production &
echo 'sharing folder: ' $PWD '/apps/remix-ide/contracts' & echo 'sharing folder: ' $PWD '/apps/remix-ide/contracts' &

Loading…
Cancel
Save