Skip to content

Commit a7f5fec

Browse files
committed
fix: remove async from the top level Jest test describe — addresses deprecation warnings about this breaking in an upcoming version of Jest
1 parent b0ebab7 commit a7f5fec

File tree

14 files changed

+14
-14
lines changed

14 files changed

+14
-14
lines changed

packages/components/bolt-background-shapes/__tests__/background-shapes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const schema = readYamlFileSync(
66
);
77
const { shapeGroup } = schema.properties;
88

9-
describe('background shapes', async () => {
9+
describe('background shapes', () => {
1010
shapeGroup.enum.forEach(async group => {
1111
test(`shape group: ${group}`, async () => {
1212
const results = await render(

packages/components/bolt-button/__tests__/button.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ async function renderTwigString(template, data) {
2020

2121
const timeout = 120000;
2222

23-
describe('button', async () => {
23+
describe('button', () => {
2424
let page;
2525

2626
afterAll(async () => {

packages/components/bolt-card/__tests__/card.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const { join } = require('path');
44
const schema = readYamlFileSync(join(__dirname, '../card.schema.yml'));
55
const { tag, contentTag, theme } = schema.properties;
66

7-
describe('<bolt-card> Component', async () => {
7+
describe('<bolt-card> Component', () => {
88
test('basic usage', async () => {
99
const results = await render('@bolt-components-card/card.twig', {
1010
contentItems: [

packages/components/bolt-chip/__tests__/chip.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const { render, renderString } = require('@bolt/twig-renderer');
22

3-
describe('<bolt-chip> Component', async () => {
3+
describe('<bolt-chip> Component', () => {
44
test('basic usage with attributes', async () => {
55
const results = await render('@bolt-components-chip/chip.twig', {
66
attributes: {

packages/components/bolt-figure/__tests__/figure.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const { render } = require('@bolt/twig-renderer');
22
const { media } = require('./figure.data');
33

4-
describe('figure', async () => {
4+
describe('figure', () => {
55
Object.keys(media).forEach(async item => {
66
test(`figure with ${item}`, async () => {
77
const results = await render('@bolt-components-figure/figure.twig', {

packages/components/bolt-icon/__tests__/icon.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const { render } = require('@bolt/twig-renderer');
22

3-
describe('<bolt-icon> Component', async () => {
3+
describe('<bolt-icon> Component', () => {
44
test('basic usage', async () => {
55
const results = await render('@bolt-components-icon/icon.twig', {
66
name: 'add-open',

packages/components/bolt-image/__tests__/image.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const { readYamlFileSync } = require('@bolt/build-tools/utils/yaml');
33
const { join } = require('path');
44
const schema = readYamlFileSync(join(__dirname, '../image.schema.yml'));
55

6-
describe('<bolt-image> Component', async () => {
6+
describe('<bolt-image> Component', () => {
77
test('<bolt-image> with ratio object compiles', async () => {
88
const results = await render('@bolt-components-image/image.twig', {
99
src: '/fixtures/1200x660.jpg',

packages/components/bolt-link/__tests__/link.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const { join } = require('path');
44
const schema = readYamlFileSync(join(__dirname, '../link.schema.yml'));
55
const { display, valign } = schema.properties;
66

7-
describe('link', async () => {
7+
describe('link', () => {
88
test('basic link', async () => {
99
const results = await render('@bolt-components-link/link.twig', {
1010
text: 'Hello World',

packages/components/bolt-ratio/__tests__/ratio.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ async function renderTwig(template, data) {
1111

1212
const timeout = 60000;
1313

14-
describe('<bolt-ratio> Component', async () => {
14+
describe('<bolt-ratio> Component', () => {
1515
let page;
1616

1717
afterAll(async () => {

packages/components/bolt-video/__tests__/video.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const { join } = require('path');
44
const schema = readYamlFileSync(join(__dirname, '../video.schema.yml'));
55
const { tag } = schema.properties;
66

7-
describe('<bolt-video> Component', async () => {
7+
describe('<bolt-video> Component', () => {
88
test('<bolt-video> compiles', async () => {
99
const results = await render('@bolt-components-video/video.twig', {
1010
videoId: '3861325118001',

0 commit comments

Comments
 (0)