Add the unexpected token to the error message (#3430)
* Add the unexpected token to the error message This is helpful during development where there's nothing to point at the character index. * Update more tests
This commit is contained in:
		@ -194,7 +194,7 @@ const sketch001 = startSketchAt([-0, -0])
 | 
			
		||||
 | 
			
		||||
    // error text on hover
 | 
			
		||||
    await page.hover('.cm-lint-marker-error')
 | 
			
		||||
    await expect(page.getByText('Unexpected token').first()).toBeVisible()
 | 
			
		||||
    await expect(page.getByText('Unexpected token: |').first()).toBeVisible()
 | 
			
		||||
 | 
			
		||||
    // Okay execution finished, let's start editing text below the error.
 | 
			
		||||
    await u.codeLocator.click()
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user