Skip to content

Commit

Permalink
Initial parts for render_test.js using liveview-native-core
Browse files Browse the repository at this point in the history
  • Loading branch information
simlay committed Jul 17, 2024
1 parent 256984f commit e089a6c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions assets/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ module.exports = {
// A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module
moduleNameMapper: {
"^phoenix_live_view$": "<rootDir>/js/phoenix_live_view/index.js",
"^liveview_native_core_wasm$": "/Users/sebastian.imlay/projects/liveview-native-core/crates/wasm/pkg/liveview_native_core_wasm.js",
"^phoenix_live_view/(.*)$": "<rootDir>/js/phoenix_live_view/$1.js"
},

Expand Down
5 changes: 3 additions & 2 deletions assets/test/rendered_test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Rendered from "phoenix_live_view/rendered"
//import Rendered from "phoenix_live_view/rendered"
import {Rendered} from "liveview_native_core_wasm"

const STATIC = "s"
const DYNAMICS = "d"
Expand Down Expand Up @@ -378,4 +379,4 @@ const staticReuseDiff = {
},
[STATIC]: ["<div>", "</div>"],
"r": 1
}
}

0 comments on commit e089a6c

Please sign in to comment.