Skip flaky macOS Sass test (#2138)

* test: skip flaky macOS test

* test: skip flaky macOS test
This commit is contained in:
Nate Moore 2021-12-06 16:32:07 -06:00 committed by GitHub
parent 77c3fda379
commit ddac977748
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,5 @@
import { expect } from 'chai';
import os from 'os';
import { loadFixture } from './test-utils.js';
// note: many Sass tests live in 0-css.test.js to test within context of a framework.
@ -16,7 +17,9 @@ describe('Sass', () => {
devServer && (await devServer.stop());
});
it('shows helpful error on failure', async () => {
// TODO: Sass cannot be found on macOS for some reason... Vite issue?
const test = os.platform() === 'darwin' ? it.skip : it;
test('shows helpful error on failure', async () => {
const res = await fixture.fetch('/error').then((res) => res.text());
expect(res).to.include('Undefined variable');
});