-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes #384 and solves https://github.com/orgs/ui5-community/projects/2?pane=issue&itemId=18873623 --------- Co-authored-by: dominikfeininger <[email protected]> Co-authored-by: Simon Coen <[email protected]>
- Loading branch information
1 parent
a4f7ef9
commit ee5e2c4
Showing
105 changed files
with
16,873 additions
and
50,182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,9 +8,11 @@ on: | |
push: | ||
branches: | ||
- main | ||
- main-v2 | ||
pull_request: | ||
branches: | ||
- main | ||
- main-v2 | ||
|
||
jobs: | ||
run-linters: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ on: | |
pull_request: | ||
branches: | ||
- main | ||
- main-v2 | ||
paths: | ||
# relevant | ||
- "client-side-js/**" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ on: | |
pull_request: | ||
branches: | ||
- main | ||
- main-v2 | ||
paths: | ||
# relevant | ||
- "client-side-js/**" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,6 +61,8 @@ typings/ | |
.idea | ||
|
||
# don't include build artifacts | ||
cjs/**/* | ||
esm/**/* | ||
dist/**/* | ||
|
||
# Gitkeep generally | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"extension": ["ts"], | ||
"spec": "test/**/*.test.ts", | ||
"require": "ts-node/register" | ||
"require": "ts-node/register", | ||
"node-option": ["experimental-specifier-resolution=node", "loader=ts-node/esm"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
16 | ||
18 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// transmogrifying wdi5's package.json to a cjs version | ||
import { promises as fs } from "fs" | ||
import pkgJson from "./package.json" assert { type: "json" } | ||
;["type", "exports", "types", "files", "workspaces", "scripts", "lint-staged"].forEach((section) => { | ||
delete pkgJson[section] | ||
}) | ||
;(async () => { | ||
await fs.writeFile("./cjs/package.json", JSON.stringify(pkgJson, null, 2)) | ||
})() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# migrating to `wdi5` 2.x | ||
|
||
Version >= 2 of `wdi5` are WebdriverIO v8 compatible. This entails a move to ESM as primary module, with CJS compatibility ensured. | ||
|
||
## check file sys dir references in your test code | ||
|
||
dir references start from the dir the file is in now, | ||
not from `cwd` | ||
|
||
```diff | ||
const _config = { | ||
wdi5: { | ||
skipInjectUI5OnStart: true | ||
}, | ||
- specs: [join("webapp", "test", "e2e", "ui5-late.test.js")], | ||
+ specs: [join("..", "webapp", "test", "e2e", "ui5-late.test.js")], | ||
baseUrl: "https://github.com/ui5-community/wdi5/" | ||
} | ||
``` |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
module.exports = { | ||
extends: "eslint:recommended", | ||
env: { | ||
node: true, | ||
es6: true, | ||
jest: true | ||
}, | ||
parserOptions: { | ||
ecmaVersion: 2017 | ||
}, | ||
globals: { | ||
browser: true, | ||
before: true, | ||
SELECT: true, | ||
INSERT: true, | ||
UPDATE: true, | ||
DELETE: true, | ||
CREATE: true, | ||
DROP: true, | ||
cds: true | ||
}, | ||
rules: { | ||
"no-console": "off", | ||
"require-atomic-updates": "off" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.