Comments (3)
ah it seems like i can do this by adding:
mochaOpts: { ui: 'bdd', compilers: 'js:babel-register', require: 'babel-polyfill', },
Unfortunately i get this follow up error:
ERROR: Module j can't get loaded. Are you sure you have installed it? Note: if you've installed WebdriverIO globally you need to install these external modules globally too! chrome at MochaAdapter.load (node_modules/wdio-mocha-framework/build/adapter.js:473:23) at node_modules/wdio-mocha-framework/build/adapter.js:321:28 at Array.forEach (native) at MochaAdapter.requireExternalModules (node_modules/wdio-mocha-framework/build/adapter.js:313:21) at MochaAdapter.options (node_modules/wdio-mocha-framework/build/adapter.js:139:18) at Suite.<anonymous> (node_modules/wdio-mocha-framework/build/adapter.js:171:43) at emitThree (events.js:121:20) at Suite.emit (events.js:194:7) at node_modules/mocha/lib/mocha.js:229:11 at Array.forEach (native)
and when doing
mochaOpts: { ui: 'bdd', compilers: ['js:babel-register'], require: ['babel-polyfill'], },
i get the import token error again
I have nothing installed globally.
from wdio-mocha-framework.
ok i added in my command BABEL_ENV=dev
now its working.
Is there a way i can add this inside the options of wdio?
from wdio-mocha-framework.
@Gobliins please check the docs: http://webdriver.io/guide/getstarted/configuration.html#Setup-Babel-to-write-tests-using-next-generation-JavaScript .. also check out the boilerplate projects, some of them have babel successfully integrated. Please join our for these kind of questions. This is not necessary an issue.
from wdio-mocha-framework.
Related Issues (20)
- Pass through custom keys added to the test object HOT 9
- Release next version to update dependencies HOT 2
- Access to the mocha test context inside hooks
- Retries Not Woking HOT 1
- Support an equivalent to --exit for Mocha HOT 8
- Problems with fibers installing on Raspberry Pi HOT 1
- Version 10 of node.js has been released
- ERROR: Cannot find module 'react-native' HOT 1
- error when trying to install with node version 11.5.0 HOT 1
- The whole test suite is failed when beforeEach hook is failed
- Update fibers HOT 7
- Not support Node V12 HOT 1
- Can't install package on node 7.4.0+, Windows HOT 3
- Describe.only ignored HOT 1
- package is not getting installed for most node verions on windows system 8.1
- An in-range update of babel-runtime is breaking the build 🚨 HOT 1
- Mocha test pass if there is some Error HOT 1
- An in-range update of mocha is breaking the build 🚨 HOT 1
- done() is not a function HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wdio-mocha-framework.