Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

MNT Get JS tests passing again #256

Merged
merged 1 commit into from
Feb 13, 2023

Conversation

GuySartorelli
Copy link
Member

@@ -14,6 +14,7 @@ describe('CampaignAdminItem', () => {
beforeEach(() => {
props = {
sectionConfig: {
reactRoutePath: '',
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is new for CMS 5 and isn't allowed to be missing.

@@ -8,6 +8,7 @@ import React from 'react';
import { Component as CampaignAdminList } from '../CampaignAdminList';
import Enzyme, { shallow } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import { setImmediate } from 'core-js';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://stackoverflow.com/a/68724767/10936596
Fixes ReferenceError: setImmediate is not defined which is test-specific.

@emteknetnz emteknetnz merged commit 6ca2bd0 into silverstripe:2.0 Feb 13, 2023
@emteknetnz emteknetnz deleted the pulls/2/js-tests branch February 13, 2023 02:20
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants