Skip to content

Commit d937e58

Browse files
committed
Completely remove integration tests
1 parent dea004f commit d937e58

10 files changed

Lines changed: 3 additions & 1296 deletions

File tree

.github/workflows/node.js.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -148,21 +148,6 @@ jobs:
148148
YT_API_KEY: ${{ secrets.YOUTUBE_KEY }}
149149
NEBULA_PASS: ${{ secrets.NEBULA_PASS }}
150150
NEBULA_USER: ${{ secrets.NEBULA_USER }}
151-
152-
- name: Clear jest cache
153-
run: npx jest --clear-cache
154-
- name: Run tests on beta
155-
run: xvfb-run --auto-servernum npm run test:ee -- --ci --passWithNoTests
156-
continue-on-error: ${{ github.event_name != 'schedule' }}
157-
id: betatest
158-
env:
159-
YT_API_KEY: ${{ secrets.YOUTUBE_KEY }}
160-
NEBULA_PASS: ${{ secrets.NEBULA_PASS }}
161-
NEBULA_USER: ${{ secrets.NEBULA_USER }}
162-
NEBULA_BASE: https://beta.nebula.tv
163-
- name: Emit warning if beta test failed
164-
if: ${{ steps.betatest.outcome == 'failure' }}
165-
run: echo "::warning::Beta tests failed"
166151

167152
release:
168153
name: Release

DEVELOPING.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Some available scripts:
5353
- `start`. This command watches and re-builds all extension-related files in debug mode, i.e. when a file of the extension changes, all files that depend on it are recompiled. You can find the built (but not bundled) extension in the folder `extension-dist`.
5454
- `start:firefox`/`start:chromium`. Like above, but also starts the selected browser with the extension loaded. In Firefox, the extension is automatically reloaded on build (sometimes you have to save twice to get the most up-to-date version), in Chrome you have to manually update it (Manage Extensions > Developer Mode on > Update). The commands `ext:firefox`/`ext:chromium` only start the browser (no build).
5555
- `test`. Compile and run all tests (unit and integration).
56-
- `test:unit`/`test:ee`. Run unit/integration tests.
56+
- `test:unit`. Run unit tests.
5757
- `clean`. Clean up all build artifacts (bundles are not affected).
5858
- `lint`. Lint entire code. Includes js, css and built extension (AMO).
5959
- `lint-fix`. Lint entire code as above and fix fixable issues.
@@ -81,7 +81,6 @@ NebulaEnhance
8181
├── README.md
8282
├─> extension-dist (generated) -- Built extension.
8383
├── eslintrc.mjs -- ESLint (js linter) config file.
84-
├── jest-puppeteer.config.cjs -- Jest-Puppeteer (integration testrunner) config.
8584
├── jest.config.js -- Jest (testrunner) config.
8685
├── jest.setup.js -- Jest setup file, run before each test file.
8786
├─> node_modules (generated) -- Installed packages.

jest-puppeteer.config.cjs

Lines changed: 0 additions & 15 deletions
This file was deleted.

jest.config.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,5 @@ export default {
2323
testMatch: ['<rootDir>/tests/unit/**/*.ts'],
2424
transform,
2525
},
26-
{
27-
displayName: 'integration',
28-
extensionsToTreatAsEsm: ['.ts'],
29-
moduleFileExtensions,
30-
moduleNameMapper,
31-
preset: 'jest-puppeteer',
32-
testEnvironment: './jestEnv.js',
33-
testMatch: ['<rootDir>/tests/integration/**/*.ts'],
34-
testTimeout: 20,
35-
transform,
36-
},
3726
],
3827
};

jestEnv.js

Lines changed: 0 additions & 21 deletions
This file was deleted.

package.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,16 @@
55
"description": "Enhancer for Nebula. Adds some quality of life features to the nebula player.",
66
"type": "module",
77
"scripts": {
8-
"jest": "NODE_OPTIONS=--experimental-vm-modules JEST_PUPPETEER_CONFIG=jest-puppeteer.config.cjs jest",
8+
"jest": "NODE_OPTIONS=--experimental-vm-modules jest",
99
"test": "npm run jest -- --runInBand",
1010
"test:unit": "npm run jest -- --selectProjects unit",
11-
"test:ee": "npm run jest -- --selectProjects integration --runInBand",
1211
"test:watch": "npm run jest -- --watch --notify",
1312
"test:pr": "npm run test:unit -- --ci --testPathIgnorePatterns youtube",
1413
"coverage": "COVERAGE=true npm run jest -- --selectProjects unit --coverage",
1514
"prebuild": "npm run clean && npm run build:all",
1615
"build": "web-ext build",
1716
"build:light": "rollup -c --configType all",
18-
"postbuild": "npm run test:unit",
17+
"postbuild": "npm run test",
1918
"start": "npm run watch:all",
2019
"start:firefox": "[ -d extension-dist ] || npm run build:light && concurrently \"npm:start\" \"npm:ext:firefox\"",
2120
"start:chromium": "[ -d extension-dist ] || npm run build:light && concurrently \"npm:start\" \"npm:ext:chromium\"",
@@ -64,10 +63,8 @@
6463
"@rollup/plugin-replace": "^6.0.2",
6564
"@rollup/plugin-terser": "^0.4.4",
6665
"@rollup/plugin-typescript": "^12.1.2",
67-
"@types/expect-puppeteer": "^5.0.6",
6866
"@types/firefox-webext-browser": "^120.0.4",
6967
"@types/jest": "^29.5.14",
70-
"@types/jest-environment-puppeteer": "^5.0.6",
7168
"@types/jsdom": "^21.1.7",
7269
"@types/node": "^22.13.0",
7370
"@typescript-eslint/eslint-plugin": "^8.22.0",
@@ -82,14 +79,11 @@
8279
"history": "^5.3.0",
8380
"jest": "^29.7.0",
8481
"jest-environment-jsdom": "^29.7.0",
85-
"jest-environment-puppeteer": "^11.0.0",
86-
"jest-puppeteer": "^11.0.0",
8782
"jsdom": "^26.0.0",
8883
"node-eval": "^2.0.0",
8984
"node-fetch": "^3.3.2",
9085
"postcss": "^8.5.1",
9186
"postcss-preset-env": "^10.1.3",
92-
"puppeteer": "^24.1.1",
9387
"rimraf": "^6.0.1",
9488
"rollup": "^4.34.0",
9589
"rollup-jest": "^3.1.0",

0 commit comments

Comments
 (0)