mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #1249] [MERGED] add codegen for nodejs native and instrument snapshot tests #3172
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#3172
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/1249
Author: @yq314
Created: 10/7/2020
Status: ✅ Merged
Merged: 10/8/2020
Merged by: @liyasthomas
Base:
master← Head:add-nodejs-native-codegen📝 Commits (3)
30250e1add codegen for nodejs native and instrument snapshot testsfe1618dmove test data to fixtures6135bc7Merge branch 'master' into add-nodejs-native-codegen📊 Changes
5 files changed (+268 additions, -0 deletions)
View changed files
📝
helpers/codegen/codegen.js(+2 -0)➕
helpers/codegen/generators/__fixtures__/test-data.js(+16 -0)➕
helpers/codegen/generators/__tests__/__snapshots__/nodejs-native.spec.js.snap(+98 -0)➕
helpers/codegen/generators/__tests__/nodejs-native.spec.js(+74 -0)➕
helpers/codegen/generators/nodejs-native.js(+78 -0)📄 Description
This PR adds codegen for NodeJs Native and also performs snapshot test on the generated code.
I put the test data in
__fixtures__so it can be reused in tests for other generators.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.