use require in core test

This commit is contained in:
Ron Rennick 2021-03-25 15:28:21 -03:00
parent 8efbd3cbf5
commit 4f6c0ee13e
3 changed files with 7 additions and 2 deletions

View File

@ -1,5 +1,10 @@
# Unreleased
# 0.1.3
## Fixed
- removed use of ES6 `import`
# 0.1.2

View File

@ -1,6 +1,6 @@
{
"name": "@woocommerce/e2e-core-tests",
"version": "0.1.2",
"version": "0.1.3",
"description": "End-To-End (E2E) tests for WooCommerce",
"homepage": "https://github.com/woocommerce/woocommerce/tree/trunk/tests/e2e/core-tests/README.md",
"repository": {

View File

@ -1,5 +1,5 @@
/* eslint-disable jest/no-export, jest/no-disabled-tests, jest/no-standalone-expect */
import {createSimpleProduct} from "@woocommerce/e2e-utils";
const { createSimpleProduct } = require( '@woocommerce/e2e-utils' );
/**
* Internal dependencies