File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 " eleven-kiwis-remain" ,
1515 " fair-parrots-sleep" ,
1616 " loud-rivers-pretend" ,
17+ " lovely-rats-glow" ,
1718 " many-spies-fix" ,
1819 " many-tigers-deliver" ,
1920 " rude-berries-rescue" ,
Original file line number Diff line number Diff line change 11# @heymp/scratchpad
22
3+ ## 1.0.0-next.14
4+
5+ ### Minor Changes
6+
7+ - 71270e1: Add config and playwright rerouting helpers
8+
9+ Export ` defineConfig ` , ` rerouteUrl ` , ` rerouteDocument ` .
10+
11+ Example:
12+
13+ ``` ts
14+ import * as Scratchpad from " @heymp/scratchpad" ;
15+
16+ export default Scratchpad .defineConfig ({
17+ devtools: true ,
18+ url: " https://www.redhat.com/en" ,
19+ playwright : async (args ) => {
20+ const { page } = args ;
21+ await Scratchpad .rerouteDocument (page , " ./pages" );
22+ await Scratchpad .rerouteUrl (page , {
23+ type: " path" ,
24+ target: " **/rh-cta/rh-cta.js" ,
25+ source: " ./rh-cta.js" ,
26+ });
27+ },
28+ });
29+ ```
30+
331## 1.0.0-next.13
432
533### Minor Changes
Original file line number Diff line number Diff line change 11{
22 "name" : " @heymp/scratchpad" ,
33 "description" : " Run TS/JS snippets in a locally" ,
4- "version" : " 1.0.0-next.13 " ,
4+ "version" : " 1.0.0-next.14 " ,
55 "main" : " src/lib/index.js" ,
66 "module" : " src/lib/index.js" ,
77 "type" : " module" ,
You can’t perform that action at this time.
0 commit comments