Jelajahi Sumber

fix: drop runner unit test from frontend CI suite

The test imported integration-tests/runner.mjs, which requires wait-on
that is not installed during frontend-unittests. pageGeneration coverage
remains in the integration test suite.

Co-authored-by: Cursor <cursoragent@cursor.com>
jamesread 1 hari lalu
induk
melakukan
b766528ecf
2 mengubah file dengan 1 tambahan dan 39 penghapusan
  1. 1 1
      frontend/package.json
  2. 0 38
      integration-tests/runner.test.mjs

+ 1 - 1
frontend/package.json

@@ -11,7 +11,7 @@
 		"stylelint-config-standard": "^40.0.0"
 	},
 	"scripts": {
-		"test": "node --test resources/vue/components/*.test.mjs resources/vue/utils/*.test.mjs resources/vue/stores/*.test.mjs ../integration-tests/runner.test.mjs"
+		"test": "node --test resources/vue/components/*.test.mjs resources/vue/utils/*.test.mjs resources/vue/stores/*.test.mjs"
 	},
 	"author": "",
 	"parcelIgnore": [

+ 0 - 38
integration-tests/runner.test.mjs

@@ -1,38 +0,0 @@
-import test from 'node:test'
-import assert from 'node:assert/strict'
-import getRunner from './runner.mjs'
-
-test('OliveTinTestRunnerVm.start advances pageGeneration', async (t) => {
-  const originalRunner = process.env.OLIVETIN_TEST_RUNNER
-  const originalIp = process.env.IP
-  const originalPort = process.env.PORT
-
-  t.after(() => {
-    if (originalRunner === undefined) {
-      delete process.env.OLIVETIN_TEST_RUNNER
-    } else {
-      process.env.OLIVETIN_TEST_RUNNER = originalRunner
-    }
-    if (originalIp === undefined) {
-      delete process.env.IP
-    } else {
-      process.env.IP = originalIp
-    }
-    if (originalPort === undefined) {
-      delete process.env.PORT
-    } else {
-      process.env.PORT = originalPort
-    }
-  })
-
-  process.env.OLIVETIN_TEST_RUNNER = 'vm'
-  process.env.IP = '127.0.0.1'
-  process.env.PORT = '1337'
-
-  const runner = getRunner()
-  const before = runner.pageGeneration
-
-  await runner.start('pageGenerationFirst')
-
-  assert.equal(runner.pageGeneration, before + 1)
-})