Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
onigoetz committed Oct 14, 2021
1 parent d6d0045 commit 49acbe1
Show file tree
Hide file tree
Showing 26 changed files with 239 additions and 240 deletions.
2 changes: 1 addition & 1 deletion packages/crafty-preset-postcss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"gulp-sourcemaps": "3.0.0",
"mini-css-extract-plugin": "2.4.2",
"postcss": "7.0.39",
"postcss-loader": "6.1.1",
"postcss-loader": "6.2.0",
"postcss-reporter": "6.0.1",
"postcss-scss": "2.1.1",
"resolve-from": "5.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/crafty-preset-swc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"lint": "yarn node ../crafty-preset-eslint/src/commands/jsLint.js --preset recommended --preset node src"
},
"dependencies": {
"@swc/core": "1.2.95",
"@swc/core": "1.2.96",
"@swc/helpers": "0.2.13",
"@swc/jest": "0.2.4",
"@swissquote/crafty-preset-eslint": "1.16.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/crafty-preset-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"gulp-concat": "2.6.1",
"gulp-newer": "1.4.0",
"rollup-plugin-typescript2": "0.30.0",
"ts-jest": "27.0.5",
"ts-jest": "27.0.6",
"ts-loader": "9.2.6"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/crafty/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"ansi-colors": "^4.0.0",
"anymatch": "3.1.2",
"async-done": "1.3.2",
"browserslist": "4.17.3",
"browserslist": "4.17.4",
"camelcase-keys": "7.0.1",
"chokidar": "3.5.2",
"copy-anything": "2.0.3",
Expand Down
12 changes: 6 additions & 6 deletions packages/integration/__tests__/crafty-preset-babel-gulp.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ it("Compiles JavaScript, target node > 12", async () => {

const result = await testUtils.run(["run", "default"], cwd);

expect(result.status).toBe(0);
expect(result).toMatchSnapshot();
expect(result.status).toBe(0);

expect(testUtils.exists(cwd, mainBundle)).toBeFalsy();
expect(testUtils.exists(cwd, mainBundleMap)).toBeFalsy();
Expand All @@ -159,8 +159,8 @@ it("Fails gracefully on broken markup", async () => {

const result = await testUtils.run(["run", "default"], cwd);

expect(result.status).toBe(1);
expect(result).toMatchSnapshot();
expect(result.status).toBe(1);

expect(testUtils.exists(cwd, mainBundle)).toBeFalsy();
expect(testUtils.exists(cwd, mainBundleMap)).toBeFalsy();
Expand All @@ -173,8 +173,8 @@ it("Compiles JavaScript with custom babel plugin", async () => {

const result = await testUtils.run(["run", "default"], cwd);

expect(result.status).toBe(0);
expect(result).toMatchSnapshot();
expect(result.status).toBe(0);

expect(testUtils.exists(cwd, mainBundle)).toBeFalsy();
expect(testUtils.exists(cwd, mainBundleMap)).toBeFalsy();
Expand All @@ -192,8 +192,8 @@ it("Compiles JavaScript and concatenates", async () => {

const result = await testUtils.run(["run", "default"], cwd);

expect(result.status).toBe(0);
expect(result).toMatchSnapshot();
expect(result.status).toBe(0);

expect(testUtils.exists(cwd, mainBundle)).toBeTruthy();
expect(testUtils.exists(cwd, mainBundleMap)).toBeTruthy();
Expand All @@ -214,8 +214,8 @@ it("Lints JavaScript", async () => {

const result = await testUtils.run(["run", "default"], cwd);

expect(result.status).toBe(1);
expect(result).toMatchSnapshot();
expect(result.status).toBe(1);

// Files aren't generated on failed lint
expect(testUtils.exists(cwd, mainBundle)).toBeFalsy();
Expand All @@ -229,8 +229,8 @@ it("Lints JavaScript, doesn't fail in development", async () => {

const result = await testUtils.run(["run", "default"], cwd);

expect(result.status).toBe(0);
expect(result).toMatchSnapshot();
expect(result.status).toBe(0);

// Files aren't generated on failed lint
expect(testUtils.exists(cwd, mainBundle)).toBeFalsy();
Expand Down
10 changes: 5 additions & 5 deletions packages/integration/__tests__/crafty-preset-babel-rollup.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ it("Compiles JavaScript with rollup", async () => {

const result = await testUtils.run(["run", "default"], cwd);

expect(result.status).toBe(0);
expect(result).toMatchSnapshot();
expect(result.status).toBe(0);

expect(testUtils.exists(cwd, BUNDLE)).toBeTruthy();
expect(testUtils.exists(cwd, BUNDLE_MAP)).toBeTruthy();
Expand All @@ -31,8 +31,8 @@ it("Keeps imports unresolved for Babel Runtime", async () => {
);
const result = await testUtils.run(["run", "default"], cwd);

expect(result.status).toBe(0);
expect(result).toMatchSnapshot();
expect(result.status).toBe(0);

expect(testUtils.exists(cwd, BUNDLE)).toBeTruthy();
expect(testUtils.exists(cwd, BUNDLE_MAP)).toBeTruthy();
Expand All @@ -47,8 +47,8 @@ it("Keeps imports unresolved for Babel Runtime, using commonjs", async () => {

const result = await testUtils.run(["run", "default"], cwd);

expect(result.status).toBe(0);
expect(result).toMatchSnapshot();
expect(result.status).toBe(0);

expect(testUtils.exists(cwd, BUNDLE)).toBeTruthy();
expect(testUtils.exists(cwd, BUNDLE_MAP)).toBeTruthy();
Expand All @@ -63,8 +63,8 @@ it("Fails gracefully on broken markup", async () => {

const result = await testUtils.run(["run", "default"], cwd);

expect(result.status).toBe(1);
expect(result).toMatchSnapshot();
expect(result.status).toBe(1);

expect(testUtils.exists(cwd, BUNDLE)).toBeFalsy();
expect(testUtils.exists(cwd, BUNDLE_MAP)).toBeFalsy();
Expand All @@ -77,8 +77,8 @@ it("Lints JavaScript with rollup", async () => {

const result = await testUtils.run(["run", "default"], cwd);

expect(result.status).toBe(1);
expect(result).toMatchSnapshot();
expect(result.status).toBe(1);

// Files aren't generated on failed lint
expect(testUtils.exists(cwd, BUNDLE)).toBeFalsy();
Expand Down
20 changes: 10 additions & 10 deletions packages/integration/__tests__/crafty-preset-babel-webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ it("Compiles JavaScript", async () => {

const result = await testUtils.run(["run", "default"], cwd);

expect(result.status).toBe(0);
expect(result).toMatchSnapshot();
expect(result.status).toBe(0);

expect(testUtils.exists(cwd, BUNDLE)).toBeTruthy();
expect(testUtils.exists(cwd, BUNDLE_MAP)).toBeTruthy();
Expand All @@ -32,8 +32,8 @@ it("Compiles JavaScript with webpack overrides", async () => {

const result = await testUtils.run(["run", "default"], cwd);

expect(result.status).toBe(0);
expect(result).toMatchSnapshot();
expect(result.status).toBe(0);

expect(testUtils.exists(cwd, BUNDLE)).toBeTruthy();
expect(testUtils.exists(cwd, BUNDLE_MAP)).toBeTruthy();
Expand All @@ -48,8 +48,8 @@ it("Compiles Generators", async () => {

const result = await testUtils.run(["run", "default"], cwd);

expect(result.status).toBe(0);
expect(result).toMatchSnapshot();
expect(result.status).toBe(0);

expect(testUtils.exists(cwd, BUNDLE)).toBeTruthy();
expect(testUtils.exists(cwd, BUNDLE_MAP)).toBeTruthy();
Expand All @@ -64,8 +64,8 @@ it("Deduplicates helpers", async () => {

const result = await testUtils.run(["run", "default"], cwd);

expect(result.status).toBe(0);
expect(result).toMatchSnapshot();
expect(result.status).toBe(0);

expect(testUtils.exists(cwd, BUNDLE)).toBeTruthy();
expect(testUtils.exists(cwd, BUNDLE_MAP)).toBeTruthy();
Expand All @@ -80,8 +80,8 @@ it("Does not transpile on modern browsers", async () => {

const result = await testUtils.run(["run", "default"], cwd);

expect(result.status).toBe(0);
expect(result).toMatchSnapshot();
expect(result.status).toBe(0);

expect(testUtils.exists(cwd, BUNDLE)).toBeTruthy();
expect(testUtils.exists(cwd, BUNDLE_MAP)).toBeTruthy();
Expand All @@ -96,8 +96,8 @@ it("Compiles JavaScript with externals", async () => {

const result = await testUtils.run(["run", "default"], cwd);

expect(result.status).toBe(0);
expect(result).toMatchSnapshot();
expect(result.status).toBe(0);

expect(testUtils.exists(cwd, BUNDLE)).toBeTruthy();
expect(testUtils.exists(cwd, BUNDLE_MAP)).toBeTruthy();
Expand All @@ -112,8 +112,8 @@ it("Creates profiles", async () => {

const result = await testUtils.run(["run", "default", "--profile"], cwd);

expect(result.status).toBe(0);
expect(result).toMatchSnapshot();
expect(result.status).toBe(0);

expect(testUtils.exists(cwd, BUNDLE)).toBeTruthy();
expect(testUtils.exists(cwd, BUNDLE_MAP)).toBeTruthy();
Expand All @@ -130,8 +130,8 @@ it("Lints JavaScript with webpack", async () => {

const result = await testUtils.run(["run", "default"], cwd);

expect(result.status).toBe(1);
expect(result).toMatchSnapshot();
expect(result.status).toBe(1);

// Files aren't generated on failed lint
expect(testUtils.exists(cwd, BUNDLE)).toBeFalsy();
Expand All @@ -145,8 +145,8 @@ it("Fails gracefully on broken markup", async () => {

const result = await testUtils.run(["run", "default"], cwd);

expect(result.status).toBe(1);
expect(result).toMatchSnapshot();
expect(result.status).toBe(1);

// Files aren't generated on failed lint
expect(testUtils.exists(cwd, BUNDLE)).toBeFalsy();
Expand All @@ -160,8 +160,8 @@ it("Removes unused classes", async () => {

const result = await testUtils.run(["run", "default"], cwd);

expect(result.status).toBe(0);
expect(result).toMatchSnapshot();
expect(result.status).toBe(0);

expect(testUtils.exists(cwd, BUNDLE)).toBeTruthy();
expect(testUtils.exists(cwd, BUNDLE_MAP)).toBeTruthy();
Expand Down
14 changes: 7 additions & 7 deletions packages/integration/__tests__/crafty-preset-babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ it("Lints JavaScript using command", async () => {

const result = await testUtils.run(["jsLint", "js/**/*.js"], cwd);

expect(result.status).toBe(1);
expect(result).toMatchSnapshot();
expect(result.status).toBe(1);

// Files aren't generated on failed lint
expect(testUtils.exists(cwd, "dist/js/myBundle.min.js")).toBeFalsy();
Expand All @@ -183,8 +183,8 @@ it("Generates IDE Helper", async () => {

const result = await testUtils.run(["ide"], cwd);

expect(result.status).toBe(0);
expect(result).toMatchSnapshot();
expect(result.status).toBe(0);

expect(testUtils.readForSnapshot(cwd, ".eslintrc.js")).toMatchSnapshot();

Expand All @@ -211,8 +211,8 @@ it("Lints JavaScript using command, ignore crafty.config.js", async () => {
cwd
);

expect(result.status).toBe(1);
expect(result).toMatchSnapshot();
expect(result.status).toBe(1);

// Files aren't generated on failed lint
expect(testUtils.exists(cwd, "dist/js/myBundle.min.js")).toBeFalsy();
Expand All @@ -227,8 +227,8 @@ it("Lints JavaScript using command, legacy", async () => {
cwd
);

expect(result.status).toBe(1);
expect(result).toMatchSnapshot();
expect(result.status).toBe(1);

// Files aren't generated on failed lint
expect(testUtils.exists(cwd, "dist/js/myBundle.min.js")).toBeFalsy();
Expand All @@ -243,8 +243,8 @@ it("Lints JavaScript using command, format preset", async () => {
cwd
);

expect(result.status).toBe(1);
expect(result).toMatchSnapshot();
expect(result.status).toBe(1);

// Files aren't generated on failed lint
expect(testUtils.exists(cwd, "dist/js/myBundle.min.js")).toBeFalsy();
Expand All @@ -259,8 +259,8 @@ it("Lints JavaScript using command, recommended preset", async () => {
cwd
);

expect(result.status).toBe(1);
expect(result).toMatchSnapshot();
expect(result.status).toBe(1);

// Files aren't generated on failed lint
expect(testUtils.exists(cwd, "dist/js/myBundle.min.js")).toBeFalsy();
Expand All @@ -275,8 +275,8 @@ it("Lints JavaScript using command, explicit configuration", async () => {
cwd
);

expect(result.status).toBe(1);
expect(result).toMatchSnapshot();
expect(result.status).toBe(1);

// Files aren't generated on failed lint
expect(testUtils.exists(cwd, "dist/js/myBundle.min.js")).toBeFalsy();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ it("Copies and compresses images", async () => {

const result = await testUtils.run(["run", "images"], cwd);

expect(result.status).toBe(0);
expect(result).toMatchSnapshot();
expect(result.status).toBe(0);

expect(testUtils.exists(cwd, "dist/images/batman.svg")).toBeTruthy();
expect(
Expand Down
2 changes: 1 addition & 1 deletion packages/integration/__tests__/crafty-preset-images.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ it("Copies and compresses images", async () => {

const result = await testUtils.run(["run", "images"], cwd);

expect(result.status).toBe(0);
expect(result).toMatchSnapshot();
expect(result.status).toBe(0);

expect(testUtils.exists(cwd, "dist/images/batman.svg")).toBeTruthy();
expect(
Expand Down

0 comments on commit 49acbe1

Please sign in to comment.