Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(runtime-vapor): api lifecycle hooks #215

Merged
merged 5 commits into from
May 26, 2024

Conversation

Ubugeeei
Copy link
Member

@Ubugeeei Ubugeeei commented May 19, 2024

resolve #164


Regarding the lifecycle hook, I wrote tests based on the cases in packages/runtime-core/tests/apiLifecycle.spec.ts, but there seem to be some points where the behavior is incorrect.

I added FIXME to the test cases and created an issue on #216.

@Ubugeeei Ubugeeei marked this pull request as draft May 19, 2024 13:25
Copy link

netlify bot commented May 19, 2024

Deploy Preview for vapor-repl ready!

Name Link
🔨 Latest commit a0558b9
🔍 Latest deploy log https://app.netlify.com/sites/vapor-repl/deploys/6653814117c58a0008853a41
😎 Deploy Preview https://deploy-preview-215--vapor-repl.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented May 19, 2024

Deploy Preview for vapor-template-explorer ready!

Name Link
🔨 Latest commit a0558b9
🔍 Latest deploy log https://app.netlify.com/sites/vapor-template-explorer/deploys/66538141d416790008ebe2cf
😎 Deploy Preview https://deploy-preview-215--vapor-template-explorer.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

github-actions bot commented May 19, 2024

Size Report

Bundles

File Size Gzip Brotli
compiler-dom.global.prod.js 80 kB 28.1 kB 24.7 kB
compiler-vapor.global.prod.js 57 kB 19.4 kB 17.5 kB
runtime-dom.global.prod.js 94.9 kB 35.8 kB 32.2 kB
runtime-vapor.global.prod.js 45.6 kB 17.1 kB 15.7 kB
vue-vapor.global.prod.js 99.7 kB 34.9 kB 31.5 kB
vue.global.prod.js 152 kB 55.1 kB 49.2 kB

Usages

Name Size Gzip Brotli
createApp 55.3 kB 21.2 kB 19.4 kB
createSSRApp 58.6 kB 22.5 kB 20.5 kB
defineCustomElement 57.6 kB 21.9 kB 20 kB
vapor 46 kB 17.2 kB 15.7 kB
overall 69.1 kB 26.2 kB 23.8 kB

Comment on lines 2 to 5
type DebuggerEvent,
ITERATE_KEY,
type InjectionKey,
type Ref,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It gets sorted automatically by lint-staged.

@Ubugeeei Ubugeeei marked this pull request as ready for review May 19, 2024 13:42
Copy link
Member

@LittleSound LittleSound left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that we are mixing the use of it() and test() function names, perhaps we can unify them into one? Other than that it looks good to me.

@Ubugeeei Ubugeeei force-pushed the ubugeeei/test/component-lifecycle branch from 12fc70d to a265416 Compare May 21, 2024 05:30
@Ubugeeei
Copy link
Member Author

Indeed. I changed everything to "it"!

@sxzz sxzz merged commit 969f53f into main May 26, 2024
6 checks passed
@sxzz sxzz deleted the ubugeeei/test/component-lifecycle branch May 26, 2024 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

test apiLifecycle
3 participants