mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-18 01:36:08 +08:00
w: remove useless jest
This commit is contained in:
1 parent
7006457001
commit
b0e7512d7a
7 files changed
+4
-69
No files matched your search
@@ -35,14 +35,6 @@ jobs:
|
||||
yarn build:ui:production
|
||||
- name: Lint
|
||||
run: yarn lint:ci
|
||||
# - name: Unit Test
|
||||
# run: yarn jest
|
||||
# - name: Report Coverage
|
||||
# uses: codecov/codecov-action@v1
|
||||
# with:
|
||||
# token: ${{ secrets.CODECOV_TOKEN }}
|
||||
# file: ./.coverage/lcov.info
|
||||
# name: codecov
|
||||
- name: Publish
|
||||
if: ${{ github.event_name == 'push' }}
|
||||
run: node build/publish.js
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
/* eslint-disable import/no-extraneous-dependencies */
|
||||
const spawn = require('cross-spawn');
|
||||
|
||||
const args = ['jest', '--coverage'];
|
||||
const [, , argv2, argv3] = process.argv;
|
||||
|
||||
if (argv2 && !argv2.startsWith('-')) {
|
||||
args.push(argv2);
|
||||
if (argv3 && !argv3.startsWith('-')) {
|
||||
args.push('--collectCoverageFrom');
|
||||
if (argv3.endsWith('.ts')) {
|
||||
args.push(`**/${argv3}`);
|
||||
} else {
|
||||
args.push(`**/${argv3}/**/*.ts`);
|
||||
}
|
||||
args.push(...process.argv.slice(4));
|
||||
} else {
|
||||
args.push(...process.argv.slice(3));
|
||||
}
|
||||
} else {
|
||||
args.push('packages/.+\\.spec\\.ts', ...process.argv.slice(2));
|
||||
}
|
||||
|
||||
spawn('npx', args, { stdio: 'inherit' });
|
||||
@@ -1,12 +0,0 @@
|
||||
module.exports = {
|
||||
mongodbMemoryServerOptions: {
|
||||
binary: {
|
||||
version: '4.0.3',
|
||||
skipMD5: true,
|
||||
},
|
||||
instance: {
|
||||
dbName: 'jest',
|
||||
},
|
||||
autoStart: false,
|
||||
},
|
||||
};
|
||||
@@ -1,16 +0,0 @@
|
||||
module.exports = {
|
||||
preset: '@shelf/jest-mongodb',
|
||||
transform: {
|
||||
'^.+\\.ts?$': 'ts-jest',
|
||||
},
|
||||
moduleFileExtensions: ['ts', 'js', 'json'],
|
||||
collectCoverage: true,
|
||||
coverageDirectory: '<rootDir>/.coverage',
|
||||
coverageProvider: 'v8',
|
||||
coverageReporters: ['text', 'lcov'],
|
||||
coveragePathIgnorePatterns: [
|
||||
'node_modules/',
|
||||
'tests/',
|
||||
'dist/',
|
||||
],
|
||||
};
|
||||
@@ -16,7 +16,6 @@
|
||||
"lint:ui": "yarn run --cwd=packages/ui-default eslint . --fix",
|
||||
"lint:ui:ci": "yarn run --cwd=packages/ui-default eslint .",
|
||||
"pub": "node build/publish",
|
||||
"jest": "node build/jest",
|
||||
"typedoc": "cross-env NODE_OPTIONS=--max_old_space_size=8192 typedoc",
|
||||
"debug:all": "node --async-stack-traces --trace-deprecation --enable-source-maps build/start --debug --template",
|
||||
"debug": "node --async-stack-traces --trace-deprecation --enable-source-maps node_modules/hydrooj/bin/hydrooj --debug --template",
|
||||
@@ -28,9 +27,7 @@
|
||||
"version": "1.0.0",
|
||||
"license": "AGPL-3.0-only",
|
||||
"devDependencies": {
|
||||
"@shelf/jest-mongodb": "^1.3.4",
|
||||
"@types/cross-spawn": "^6.0.2",
|
||||
"@types/jest": "^26.0.24",
|
||||
"@types/node": "^15.14.3",
|
||||
"@types/semver": "^7.3.8",
|
||||
"@typescript-eslint/eslint-plugin": "^4.28.4",
|
||||
@@ -44,13 +41,11 @@
|
||||
"eslint-plugin-import": "^2.23.4",
|
||||
"fs-extra": "^10.0.0",
|
||||
"globby": "^11.0.4",
|
||||
"jest": "^27.0.6",
|
||||
"latest-version": "^5.1.0",
|
||||
"mongodb": "^3.6.10",
|
||||
"nmls": "^3.0.1",
|
||||
"ora": "^5.4.1",
|
||||
"semver": "^7.3.5",
|
||||
"ts-jest": "^27.0.4",
|
||||
"typedoc": "^0.21.4",
|
||||
"typescript": "4.2.4"
|
||||
}
|
||||
|
||||
@@ -2,4 +2,4 @@ const { spawnSync } = require('child_process');
|
||||
const os = require('os');
|
||||
if (os.platform() === 'linux') {
|
||||
spawnSync('bash download.sh');
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/geoip",
|
||||
"version": "1.2.0",
|
||||
"version": "1.2.1",
|
||||
"main": "package.json",
|
||||
"repository": "git@github.com:hydro-dev/Hydro.git",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
@@ -10,9 +10,9 @@
|
||||
},
|
||||
"preferUnplugged": true,
|
||||
"scripts": {
|
||||
"postinstall": "node download.js"
|
||||
"prepublish": "node download.js"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"hydrooj": "^2.15.0"
|
||||
"hydrooj": "*"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user