diff --git a/package.json b/package.json index 56a01470..2629ad09 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,6 @@ { "name": "nuxeo-extension", + "type": "module", "private": true, "engines": { "node": ">=10.12.0" @@ -61,7 +62,7 @@ "build": "gulp clean build", "gulp": "gulp", "watch": "gulp watch", - "test": "./node_modules/.bin/wdio wdio.conf.js" + "test": "./node_modules/.bin/wdio wdio.conf.cjs" }, "dependencies": { "chai": "^4.2.0", diff --git a/test/features/step_definitions/about.js b/test/features/step_definitions/about.cjs similarity index 100% rename from test/features/step_definitions/about.js rename to test/features/step_definitions/about.cjs diff --git a/test/features/step_definitions/designer-live-preview.js b/test/features/step_definitions/designer-live-preview.cjs similarity index 100% rename from test/features/step_definitions/designer-live-preview.js rename to test/features/step_definitions/designer-live-preview.cjs diff --git a/test/features/step_definitions/display.js b/test/features/step_definitions/display.cjs similarity index 100% rename from test/features/step_definitions/display.js rename to test/features/step_definitions/display.cjs diff --git a/test/features/step_definitions/navigation.js b/test/features/step_definitions/navigation.cjs similarity index 100% rename from test/features/step_definitions/navigation.js rename to test/features/step_definitions/navigation.cjs diff --git a/test/features/step_definitions/platform.js b/test/features/step_definitions/platform.cjs similarity index 100% rename from test/features/step_definitions/platform.js rename to test/features/step_definitions/platform.cjs diff --git a/test/features/step_definitions/restart.js b/test/features/step_definitions/restart.cjs similarity index 100% rename from test/features/step_definitions/restart.js rename to test/features/step_definitions/restart.cjs diff --git a/test/features/step_definitions/search.js b/test/features/step_definitions/search.cjs similarity index 100% rename from test/features/step_definitions/search.js rename to test/features/step_definitions/search.cjs diff --git a/test/features/step_definitions/studio.js b/test/features/step_definitions/studio.cjs similarity index 100% rename from test/features/step_definitions/studio.js rename to test/features/step_definitions/studio.cjs diff --git a/test/features/step_definitions/support/client.js b/test/features/step_definitions/support/client.cjs similarity index 100% rename from test/features/step_definitions/support/client.js rename to test/features/step_definitions/support/client.cjs diff --git a/test/features/step_definitions/support/fixtures/auth.js b/test/features/step_definitions/support/fixtures/auth.cjs similarity index 100% rename from test/features/step_definitions/support/fixtures/auth.js rename to test/features/step_definitions/support/fixtures/auth.cjs diff --git a/test/features/step_definitions/support/fixtures/documents.js b/test/features/step_definitions/support/fixtures/documents.cjs similarity index 100% rename from test/features/step_definitions/support/fixtures/documents.js rename to test/features/step_definitions/support/fixtures/documents.cjs diff --git a/test/features/step_definitions/support/fixtures/mocks.js b/test/features/step_definitions/support/fixtures/mocks.cjs similarity index 100% rename from test/features/step_definitions/support/fixtures/mocks.js rename to test/features/step_definitions/support/fixtures/mocks.cjs diff --git a/test/features/step_definitions/support/fixtures/nav.js b/test/features/step_definitions/support/fixtures/nav.cjs similarity index 100% rename from test/features/step_definitions/support/fixtures/nav.js rename to test/features/step_definitions/support/fixtures/nav.cjs diff --git a/test/features/step_definitions/support/hooks.js b/test/features/step_definitions/support/hooks.cjs similarity index 100% rename from test/features/step_definitions/support/hooks.js rename to test/features/step_definitions/support/hooks.cjs diff --git a/test/features/step_definitions/toggles.js b/test/features/step_definitions/toggles.cjs similarity index 100% rename from test/features/step_definitions/toggles.js rename to test/features/step_definitions/toggles.cjs diff --git a/test/injecter.js b/test/injecter.cjs similarity index 100% rename from test/injecter.js rename to test/injecter.cjs diff --git a/wdio.conf.js b/wdio.conf.cjs similarity index 98% rename from wdio.conf.js rename to wdio.conf.cjs index c7618b4f..468be9de 100644 --- a/wdio.conf.js +++ b/wdio.conf.cjs @@ -1,4 +1,4 @@ -const nuxeo = require('./test/features/step_definitions/support/client.js').nuxeo; +const nuxeo = require('./test/features/step_definitions/support/client.cjs').nuxeo; const path = require('path'); exports.config = { @@ -167,7 +167,7 @@ exports.config = { // // If you are using Cucumber you need to specify the location of your step definitions. cucumberOpts: { - require: ['./test/features/step_definitions/*.js'], // (file/dir) require files before executing features + require: ['./test/features/step_definitions/*.cjs'], // (file/dir) require files before executing features backtrace: true, // show full backtrace for errors compiler: [], // ("extension:module") require files with the given EXTENSION after requiring MODULE (repeatable) dryRun: false, // invoke formatters without executing steps