From c1358301cc521469f0cd48a79b89d1f28b50ef30 Mon Sep 17 00:00:00 2001 From: Joe Haddad Date: Thu, 12 Mar 2020 23:23:21 -0400 Subject: [PATCH] Fix Test for Windows --- test/integration/scss/test/index.test.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/test/integration/scss/test/index.test.js b/test/integration/scss/test/index.test.js index 1678bb00e07962d..9daec89617a4358 100644 --- a/test/integration/scss/test/index.test.js +++ b/test/integration/scss/test/index.test.js @@ -37,16 +37,16 @@ describe('SCSS Support', () => { stderr: true, }) expect(code).toBe(1) - expect(stderr.split('Require stack:')[0]).toMatchInlineSnapshot(` - "Failed to compile. - - ./styles/global.scss - To use Next.js' built-in Sass support, you first need to install \`sass\`. - Run \`npm i sass\` or \`yarn add sass\` inside your workspace. - - Learn more: https://err.sh/next.js/install-sass - " - `) + expect(stderr).toContain('Failed to compile.') + expect(stderr).toContain( + "To use Next.js' built-in Sass support, you first need to install `sass`." + ) + expect(stderr).toContain( + 'Run `npm i sass` or `yarn add sass` inside your workspace.' + ) + expect(stderr).toContain( + 'Learn more: https://err.sh/next.js/install-sass' + ) }) })