fix core plugin test execution

This commit is contained in:
Sebastian Sdorra
2019-10-09 12:14:41 +02:00
parent 9bb2a76689
commit 76a6bba80c
11 changed files with 12 additions and 37 deletions

View File

@@ -51,10 +51,6 @@
<extensions>true</extensions> <extensions>true</extensions>
<configuration> <configuration>
<corePlugin>true</corePlugin> <corePlugin>true</corePlugin>
<links>
<link>@scm-manager/ui-types</link>
<link>@scm-manager/ui-components</link>
</links>
</configuration> </configuration>
</plugin> </plugin>

View File

@@ -4,8 +4,7 @@
"license": "BSD-3-Clause", "license": "BSD-3-Clause",
"main": "src/main/js/index.js", "main": "src/main/js/index.js",
"scripts": { "scripts": {
"build": "webpack --mode=development", "build": "webpack --mode=development"
"test": "jest --config=../../scm-ui/scripts/jest-plugin.config.js"
}, },
"jest": { "jest": {
"transform": { "transform": {

View File

@@ -57,10 +57,6 @@
<extensions>true</extensions> <extensions>true</extensions>
<configuration> <configuration>
<corePlugin>true</corePlugin> <corePlugin>true</corePlugin>
<links>
<link>@scm-manager/ui-types</link>
<link>@scm-manager/ui-components</link>
</links>
</configuration> </configuration>
</plugin> </plugin>

View File

@@ -4,8 +4,7 @@
"license": "BSD-3-Clause", "license": "BSD-3-Clause",
"main": "src/main/js/index.js", "main": "src/main/js/index.js",
"scripts": { "scripts": {
"build": "webpack --mode=development", "build": "webpack --mode=development"
"test": "jest --config=../../scm-ui/scripts/jest-plugin.config.js"
}, },
"jest": { "jest": {
"transform": { "transform": {

View File

@@ -4,8 +4,7 @@
"version": "2.0.0-SNAPSHOT", "version": "2.0.0-SNAPSHOT",
"license": "BSD-3-Clause", "license": "BSD-3-Clause",
"scripts": { "scripts": {
"build": "webpack --mode=development", "build": "webpack --mode=development"
"test": "jest --config=../../scm-ui/scripts/jest-plugin.config.js"
}, },
"jest": { "jest": {
"transform": { "transform": {

View File

@@ -44,10 +44,6 @@
<artifactId>smp-maven-plugin</artifactId> <artifactId>smp-maven-plugin</artifactId>
<configuration> <configuration>
<corePlugin>true</corePlugin> <corePlugin>true</corePlugin>
<links>
<link>@scm-manager/ui-types</link>
<link>@scm-manager/ui-components</link>
</links>
</configuration> </configuration>
</plugin> </plugin>

View File

@@ -4,7 +4,7 @@
const path = require("path"); const path = require("path");
const { createTransformer } = require("babel-jest"); const { createTransformer } = require("babel-jest");
const packagePath = path.resolve(__dirname, "../"); const packagePath = path.resolve(__dirname, "..");
const packageGlob = path.join(packagePath, "*"); const packageGlob = path.join(packagePath, "*");
const currentDirectory = path.join(process.cwd()); const currentDirectory = path.join(process.cwd());

View File

@@ -19,7 +19,7 @@
"create-index": "^2.3.0", "create-index": "^2.3.0",
"enzyme": "^3.5.0", "enzyme": "^3.5.0",
"enzyme-adapter-react-16": "^1.3.1", "enzyme-adapter-react-16": "^1.3.1",
"fetch-mock": "^7.2.5", "fetch-mock": "^7.5.1",
"flow-bin": "^0.109.0", "flow-bin": "^0.109.0",
"flow-typed": "^2.5.1", "flow-typed": "^2.5.1",
"raf": "^3.4.0", "raf": "^3.4.0",

View File

@@ -3,8 +3,8 @@ import FileSize from "./FileSize";
it("should format bytes", () => { it("should format bytes", () => {
expect(FileSize.format(0)).toBe("0 B"); expect(FileSize.format(0)).toBe("0 B");
expect(FileSize.format(160)).toBe("160 B"); expect(FileSize.format(160)).toBe("160 B");
expect(FileSize.format(6304)).toBe("6.16 K"); expect(FileSize.format(6304)).toBe("6.30 K");
expect(FileSize.format(28792588)).toBe("27.46 M"); expect(FileSize.format(28792588)).toBe("28.79 M");
expect(FileSize.format(1369510189)).toBe("1.28 G"); expect(FileSize.format(1369510189)).toBe("1.37 G");
expect(FileSize.format(42949672960)).toBe("40.00 G"); expect(FileSize.format(42949672960)).toBe("42.95 G");
}); });

View File

@@ -58,7 +58,7 @@
"copyfiles": "^2.0.0", "copyfiles": "^2.0.0",
"enzyme": "^3.3.0", "enzyme": "^3.3.0",
"enzyme-adapter-react-16": "^1.1.1", "enzyme-adapter-react-16": "^1.1.1",
"fetch-mock": "^6.5.0", "fetch-mock": "^7.5.1",
"flow-bin": "^0.109.0", "flow-bin": "^0.109.0",
"flow-typed": "^2.6.1", "flow-typed": "^2.6.1",
"node-sass": "^4.9.3", "node-sass": "^4.9.3",

View File

@@ -3863,16 +3863,7 @@ fb-watchman@^2.0.0:
dependencies: dependencies:
bser "^2.0.0" bser "^2.0.0"
fetch-mock@^6.5.0: fetch-mock@^7.5.1:
version "6.5.2"
resolved "https://registry.yarnpkg.com/fetch-mock/-/fetch-mock-6.5.2.tgz#b3842b305c13ea0f81c85919cfaa7de387adfa3e"
integrity sha512-EIvbpCLBTYyDLu4HJiqD7wC8psDwTUaPaWXNKZbhNO/peUYKiNp5PkZGKRJtnTxaPQu71ivqafvjpM7aL+MofQ==
dependencies:
babel-polyfill "^6.26.0"
glob-to-regexp "^0.4.0"
path-to-regexp "^2.2.1"
fetch-mock@^7.2.5:
version "7.5.1" version "7.5.1"
resolved "https://registry.yarnpkg.com/fetch-mock/-/fetch-mock-7.5.1.tgz#78fc8e4ffc7d7cdd6048b6e501f21be2db489352" resolved "https://registry.yarnpkg.com/fetch-mock/-/fetch-mock-7.5.1.tgz#78fc8e4ffc7d7cdd6048b6e501f21be2db489352"
integrity sha512-yTb46p7y14bfyWCox50lYqs6NRSo7XPOKzsnLzrSOqRWAGLsvF+aAv0dPkTLeKaBeH3aVSVwWeXzMrctXEZVag== integrity sha512-yTb46p7y14bfyWCox50lYqs6NRSo7XPOKzsnLzrSOqRWAGLsvF+aAv0dPkTLeKaBeH3aVSVwWeXzMrctXEZVag==
@@ -4289,8 +4280,7 @@ getpass@^0.1.1:
gitdiff-parser@^0.1.2: gitdiff-parser@^0.1.2:
version "0.1.2" version "0.1.2"
resolved "https://registry.yarnpkg.com/gitdiff-parser/-/gitdiff-parser-0.1.2.tgz#26a256e05e9c2d5016b512a96c1dacb40862b92a" resolved "https://github.com/cloudogu/gitdiff-parser#3a72da4a8e3d9bfb4b9e01a43e85628c19f26cc4"
integrity sha512-glDM6E1AwLYYTOPyI0CqamNEUSuwwAkmwULWpE2sHMpMZNzGJwErt7+eV+yIZcsbDza0pVSlwlBHFWbTf2Wu7A==
glob-parent@^3.1.0: glob-parent@^3.1.0:
version "3.1.0" version "3.1.0"