Skip to content

Commit

Permalink
prevent prettier interference with snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
dmail committed Nov 28, 2023
1 parent 4d2e2e6 commit 0630869
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
8 changes: 0 additions & 8 deletions tests/write_inside_html/root/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,6 @@
<title>Title</title>
<meta charset="utf-8" />
<link rel="icon" href="data:," />
<script type="importmap" jsenv-injected-by="@jsenv/importmap-node-module">
{
"imports": {
"foo": "./node_modules/foo/foo.js"
},
"scopes": {}
}
</script>
</head>

<body>
Expand Down
5 changes: 5 additions & 0 deletions tests/write_inside_html/write_inside_html.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ const test = async (fixtureName, options) => {
to: new URL(`./snapshots/${fixtureName}`, import.meta.url),
overwrite: true,
});
copyFileSync({
from: new URL(`./fixtures/${fixtureName}`, import.meta.url),
to: new URL("./root/index.html", import.meta.url),
overwrite: true,
});
};

const directorySnapshot = takeDirectorySnapshot(snapshotDirectoryUrl);
Expand Down

0 comments on commit 0630869

Please sign in to comment.