Skip to content

Commit bc11eb5

Browse files
committed
Resolve NPM audit issues.
1 parent d4f1586 commit bc11eb5

File tree

8 files changed

+9539
-20999
lines changed

8 files changed

+9539
-20999
lines changed

package-lock.json

Lines changed: 9446 additions & 20875 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
},
1818
"files": [
1919
"/dist/**/*",
20-
"/tests/**/*"
20+
"/test/**/*"
2121
],
2222
"keywords": [
2323
"vue",
@@ -54,7 +54,7 @@
5454
"publish:execute": "npm run publish:cdn && npm publish && npm run publish:createGitHubRelease",
5555
"publish:createGitHubRelease": "gh release create v$(node -p \"require('./package.json').version\")",
5656
"publish:cdn": "npm run prepack:cdn && aws s3 cp --recursive --content-type application/javascript dist/ s3://upload-js-releases/upload-widget-vue/ && aws cloudfront create-invalidation --distribution-id E250290WAJ43YY --paths '/upload-widget-vue/*'",
57-
"test": "npx wdio run tests/wdio.conf.ts --autoCompileOpts.tsNodeOpts.project=tests/tsconfig.json",
57+
"test": "wdio run ./wdio.conf.ts",
5858
"prepare": "husky install"
5959
},
6060
"lint-staged": {
@@ -81,13 +81,12 @@
8181
"@typescript-eslint/eslint-plugin": "4.33.0",
8282
"@typescript-eslint/parser": "4.33.0",
8383
"@vue/compiler-sfc": "3.4.21",
84-
"@wdio/cli": "7.7.5",
85-
"@wdio/local-runner": "7.7.5",
86-
"@wdio/mocha-framework": "7.7.5",
87-
"@wdio/spec-reporter": "7.7.5",
84+
"@wdio/cli": "^9.12.4",
85+
"@wdio/local-runner": "^9.12.4",
86+
"@wdio/mocha-framework": "^9.12.3",
87+
"@wdio/spec-reporter": "^9.12.3",
8888
"babel-loader": "8.2.3",
8989
"babel-plugin-transform-async-to-promises": "0.8.18",
90-
"chromedriver": "^126.0.4",
9190
"enzyme": "3.11.0",
9291
"eslint": "7.32.0",
9392
"eslint-config-prettier": "6.15.0",
@@ -109,9 +108,6 @@
109108
"typescript": "4.7.4",
110109
"vue": "3.4.21",
111110
"vue-loader": "16.8.3",
112-
"wdio-chromedriver-service": "^7.3.2",
113-
"wdio-wait-for": "^2.2.5",
114-
"webdriverio": "7.7.5",
115111
"webpack": "5.94.0",
116112
"webpack-bundle-analyzer": "4.2.0",
117113
"webpack-cli": "4.10.0",
File renamed without changes.

test/specs/test.e2e.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/* eslint-disable @typescript-eslint/no-floating-promises */
2+
import App from "../pageobjects/app.page";
3+
4+
describe("@bytescale/upload-widget-angular sandbox", () => {
5+
it("should contain a dropzone component", async () => {
6+
await App.open();
7+
const button = App.dropzoneUploadButton;
8+
const buttonText = await button.getText();
9+
expect(buttonText).toBe("Upload a File");
10+
});
11+
it("should contain a file upload button", async () => {
12+
await App.open();
13+
await App.modalLauncher.click();
14+
const button = App.modalButton;
15+
await button.waitForClickable();
16+
const buttonText = await button.getText();
17+
expect(buttonText).toBe("Upload a File");
18+
});
19+
});

tests/e2e/specs/app.spec.ts

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

tests/tsconfig.json

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

tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@
2020
"paths": {
2121
"@bytescale/upload-widget-vue": ["./"],
2222
"@bytescale/upload-widget-vue/*": ["./*"]
23-
}
23+
},
24+
"types": ["@wdio/globals/types", "@wdio/mocha-framework"]
2425
},
25-
"include": ["./src/**/*"],
26+
"include": ["./**/*"],
2627
"exclude": ["./node_modules/**/*"]
2728
}

0 commit comments

Comments
 (0)