Skip to content

Commit

Permalink
Tests importing slash will need to be ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrotherham committed Nov 9, 2022
1 parent e49af71 commit fb1de88
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ module.exports = {
...config,
displayName: 'JavaScript behaviour tests',
testMatch: [
'**/*.test.js',
'**/*.test.{js,mjs}',

// Exclude macro/unit tests
'!**/(*.)?template.test.{js,mjs}',
Expand All @@ -73,7 +73,7 @@ module.exports = {
testEnvironment: './config/jest/environment/puppeteer.mjs',
testMatch: [
'**/all.test.{js,mjs}',
'**/components/*/*.test.js',
'**/components/*/*.test.{js,mjs}',

// Exclude macro/unit tests
'!**/(*.)?template.test.{js,mjs}',
Expand Down
10 changes: 5 additions & 5 deletions src/govuk/all.test.js → src/govuk/all.test.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const sassdoc = require('sassdoc')
const slash = require('slash')
import sassdoc from 'sassdoc'
import slash from 'slash'

const configPaths = require('../../config/paths.js')
import configPaths from '../../config/paths.js'

const { renderSass } = require('../../lib/jest-helpers')
const { goTo, goToExample } = require('../../lib/puppeteer-helpers')
import { renderSass } from '../../lib/jest-helpers'
import { goTo, goToExample } from '../../lib/puppeteer-helpers'

describe('GOV.UK Frontend', () => {
describe('javascript', () => {
Expand Down

0 comments on commit fb1de88

Please sign in to comment.