@web/test-runner-commands
Advanced tools
Comparing version 0.5.5 to 0.5.6
# @web/test-runner-commands | ||
## 0.5.6 | ||
### Patch Changes | ||
- cb693c71: Use block comments in snapshots to make them work in all browsers | ||
## 0.5.5 | ||
@@ -4,0 +10,0 @@ |
@@ -67,3 +67,3 @@ "use strict"; | ||
? await readFile(snapshotPath, 'utf-8') | ||
: 'export const snapshotsVersion = 1;\nexport const snapshots = {};\n\n'; | ||
: '/* @web/test-runner snapshot v1 */\nexport const snapshots = {};\n\n'; | ||
this.snapshots.set(snapshotPath, content); | ||
@@ -79,3 +79,3 @@ // resolve read promise to let others who are waiting continue | ||
const startMarker = `snapshots[${nameStr}]`; | ||
const endMarker = `// end snapshot ${name}\n\n`; | ||
const endMarker = `/* end snapshot ${name} */\n\n`; | ||
const replacement = updatedSnapshot | ||
@@ -102,3 +102,3 @@ ? `${startMarker} = \n\`${updatedSnapshot}\`;\n${endMarker}` | ||
this.snapshots.set(snapshotPath, updatedContent); | ||
if (updatedContent.includes('// end snapshot')) { | ||
if (updatedContent.includes('/* end snapshot')) { | ||
// update or create snapshot | ||
@@ -105,0 +105,0 @@ const fileDir = path_1.default.dirname(snapshotPath); |
{ | ||
"name": "@web/test-runner-commands", | ||
"version": "0.5.5", | ||
"version": "0.5.6", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
@@ -73,3 +73,3 @@ /* eslint-disable @typescript-eslint/no-empty-function */ | ||
? await readFile(snapshotPath, 'utf-8') | ||
: 'export const snapshotsVersion = 1;\nexport const snapshots = {};\n\n'; | ||
: '/* @web/test-runner snapshot v1 */\nexport const snapshots = {};\n\n'; | ||
this.snapshots.set(snapshotPath, content); | ||
@@ -87,3 +87,3 @@ | ||
const startMarker = `snapshots[${nameStr}]`; | ||
const endMarker = `// end snapshot ${name}\n\n`; | ||
const endMarker = `/* end snapshot ${name} */\n\n`; | ||
const replacement = updatedSnapshot | ||
@@ -114,3 +114,3 @@ ? `${startMarker} = \n\`${updatedSnapshot}\`;\n${endMarker}` | ||
this.snapshots.set(snapshotPath, updatedContent); | ||
if (updatedContent.includes('// end snapshot')) { | ||
if (updatedContent.includes('/* end snapshot')) { | ||
// update or create snapshot | ||
@@ -117,0 +117,0 @@ const fileDir = path.dirname(snapshotPath); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
84342