diff --git a/index.js b/index.js
index <HASH>..<HASH> 100644
--- a/index.js
+++ b/index.js
@@ -182,7 +182,8 @@ class mochaPlugin {
       // Verify that the service runtime matches with the current runtime
       let { runtime } = inited.provider;
       // Fix the real version for node10
-      runtime = runtime.replace('.x', '');
+      if (runtime)
+        runtime = runtime.replace('.x', '');
 
       let nodeVersion;
       if (typeof process.versions === 'object') {
Check runtime var

To avoid "Cannot read property 'replace' of undefined" error if provider dont have Node version.