Testing Global SCSS Asset Resolution in Create React App
This test suite validates the global SCSS asset resolution functionality in Create React App. It focuses on verifying build processes in both development and production environments, ensuring proper SCSS asset handling and resolution.
Test Coverage Overview
Implementation Analysis
Technical Details
Best Practices Demonstrated
facebook/create-react-app
test/fixtures/global-scss-asset-resolution/index.test.js
'use strict';
const testSetup = require('../__shared__/test-setup');
if (testSetup.isLocal) {
// TODO: make this work locally
test('skipped locally', () => {});
} else {
test('builds in development', async () => {
const { fulfilled } = await testSetup.scripts.start({ smoke: true });
expect(fulfilled).toBe(true);
});
test('builds in production', async () => {
const { fulfilled } = await testSetup.scripts.build();
expect(fulfilled).toBe(true);
});
}