Skip to content

Commit 3237218

Browse files
feat: make test helpers globally available [#292] (#293)
* feat: make test helpers globally available [#292] * fix: update to new regime [#292] * fix: remove unnecessary .env files [#292] * fix: remove now-redundant creation of .env.test in commit flow [#292] * fix: move clerk_test package to test_support directory [#292] * fix: change email address to use clerk_test [#292] * fix: make test_support work on windows [#292] --------- Co-authored-by: Simon Lightfoot <simon@devangels.london>
1 parent b38636e commit 3237218

File tree

58 files changed

+509
-468
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+509
-468
lines changed

.github/workflows/main.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,6 @@ jobs:
5656
run: flutter analyze
5757
working-directory: packages/clerk_flutter
5858

59-
- name: Prepare the test environment
60-
env:
61-
TEST_ENV_BASE64: ${{ secrets.TEST_ENV_BASE64 }}
62-
run: |
63-
echo $TEST_ENV_BASE64 | base64 --decode > packages/clerk_auth/.env.test
64-
6559
- name: Run tests in clerk_auth
6660
run: dart test --file-reporter=json:../../reports/clerk_auth.json
6761
working-directory: packages/clerk_auth

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,18 @@ The official [Clerk](https://clerk.com) Flutter/Dart client library.
1818
* [clerk_flutter](./packages/clerk_flutter): Flutter SDK
1919

2020

21-
## License
21+
### Note
22+
23+
This repo uses symbolic links to enable test code to be shared but not published.
24+
You might need to enable this git config parameter.
25+
26+
`git config core.symlinks true`
27+
28+
or clone with it on
29+
30+
`git clone -c core.symlinks=true https://github.com/clerk/clerk-sdk-flutter.git`
31+
32+
33+
### License
2234

2335
These SDKs are licensed under the MIT license found in the [LICENSE](./LICENSE) file.

packages/clerk_auth/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ build/
1717
# Avoid committing pubspec.lock for library packages; see
1818
# https://dart.dev/guides/libraries/private-files#pubspeclock.
1919
pubspec.lock
20-
.env.test
20+
.env.*
2121

2222
# Flutter auto-generated files
2323
.flutter-plugins

packages/clerk_auth/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ dev_dependencies:
2424
json_serializable: ^6.8.0
2525
lints: ^3.0.0
2626
mocktail: ^1.0.4
27-
test: ^1.25.5
27+
test: ^1.25.5

packages/clerk_auth/test/_responses/clerk_api/environment_test/can_fetch_env/001.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/clerk_auth/test/_responses/clerk_api/sign_in_test/email_and_password/002.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/clerk_auth/test/_responses/clerk_api/sign_up_test/email_code/001.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/clerk_auth/test/_responses/clerk_api/sign_up_test/email_code/002.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)