Skip to content

Commit

Permalink
chore: use HIGHEST_API_VERSION from @lwc/shared in karma test options
Browse files Browse the repository at this point in the history
  • Loading branch information
divmain committed Nov 7, 2023
1 parent 99a9ae2 commit 5a1f783
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/@lwc/integration-karma/scripts/shared/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

'use strict';

const { HIGHEST_API_VERSION } = require('@lwc/shared');

// Helpful error. Remove after a few months.
if (process.env.NATIVE_SHADOW) {
throw new Error('NATIVE_SHADOW is deprecated. Use DISABLE_SYNTHETIC instead!');
Expand All @@ -28,10 +30,9 @@ const DISABLE_STATIC_CONTENT_OPTIMIZATION = Boolean(
process.env.DISABLE_STATIC_CONTENT_OPTIMIZATION
);
const NODE_ENV_FOR_TEST = process.env.NODE_ENV_FOR_TEST;
const LATEST_API_VERSION = 60;
const API_VERSION = process.env.API_VERSION
? parseInt(process.env.API_VERSION, 10)
: LATEST_API_VERSION;
: HIGHEST_API_VERSION;

module.exports = {
// Test configuration
Expand All @@ -43,7 +44,6 @@ module.exports = {
DISABLE_SYNTHETIC_SHADOW_SUPPORT_IN_COMPILER,
DISABLE_STATIC_CONTENT_OPTIMIZATION,
SYNTHETIC_SHADOW_ENABLED: !DISABLE_SYNTHETIC,
LATEST_API_VERSION,
API_VERSION,
GREP: process.env.GREP,
COVERAGE: Boolean(process.env.COVERAGE),
Expand Down

0 comments on commit 5a1f783

Please sign in to comment.