-
-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Initial FieldAPI tests, made FieldAPI typings much more strict (#…
…405) * fix: initial work at fixing the typescript typings for fieldapi to be more strict * chore(form-core): change implementation of strict tdata * fix(form-core): insertValue should now be typed properly * test(form-core): validate array helpers * fix(form-core): make types for getSubField more narrow * chore: autoformat with prettier * chore: fix tests, eslint * chore: upgrade eslint deps * chore: upgrade nx and concurrent * chore: remove svelte from prettier plugins * chore: upgrade TypeScript version to avoid a TS codegen bug * chore: remove React 17 CI script temporarily * chore: fix build and formatter
- Loading branch information
1 parent
25237e4
commit 7ee5524
Showing
11 changed files
with
2,959 additions
and
2,246 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,32 +88,6 @@ jobs: | |
- name: Install dependencies | ||
run: pnpm --filter "./packages/**" --filter form --prefer-offline install --no-frozen-lockfile | ||
- run: pnpm run test:format --base=${{ github.event.pull_request.base.sha }} | ||
test-react-17: | ||
name: 'Test React 17' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.head_ref }} | ||
repository: ${{github.event.pull_request.head.repo.full_name}} | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: 7 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.14.2 | ||
cache: 'pnpm' | ||
- name: Install dependencies | ||
run: pnpm --filter "./packages/**" --filter form --prefer-offline install --no-frozen-lockfile | ||
- name: Run Tests | ||
uses: nick-fields/[email protected] | ||
with: | ||
timeout_minutes: 5 | ||
max_attempts: 3 | ||
command: pnpm run test:react:17 --base=${{ github.event.pull_request.base.sha }} | ||
env: | ||
REACTJS_VERSION: 17 | ||
test-build: | ||
name: 'Test Build' | ||
runs-on: ubuntu-latest | ||
|
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,8 +1,5 @@ | ||
{ | ||
"semi": false, | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"pluginSearchDirs": false, | ||
"plugins": ["prettier-plugin-svelte"], | ||
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }] | ||
"trailingComma": "all" | ||
} |
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.