Git Product home page Git Product logo

Comments (3)

Gobliins avatar Gobliins commented on August 26, 2024

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.

Gobliins avatar Gobliins commented on August 26, 2024

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.

christian-bromann avatar christian-bromann commented on August 26, 2024

@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 Gitter for these kind of questions. This is not necessary an issue.

from wdio-mocha-framework.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.