Only bundle the release build, and don't import src in tests (#13978)
* Only bundle the release build, and don't import `src` in tests * Use file extension to signal skipping * Remove unnecessary config change * Fix imports
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { tt, tokenOperatorPrecedence } from "../../../src/tokenizer/types.js";
|
||||
import { tt, tokenOperatorPrecedence } from "../../../lib/tokenizer/types.js";
|
||||
|
||||
describe("token types", () => {
|
||||
it("should check if the binOp for relational === in", () => {
|
||||
@@ -1,7 +1,7 @@
|
||||
import {
|
||||
isKeyword,
|
||||
keywordRelationalOperator,
|
||||
} from "../../../src/util/identifier.js";
|
||||
} from "../../../lib/util/identifier.js";
|
||||
|
||||
describe("identifier", () => {
|
||||
describe("isKeyword", () => {
|
||||
@@ -1,4 +1,4 @@
|
||||
import { getLineInfo } from "../../../src/util/location.js";
|
||||
import { getLineInfo } from "../../../lib/util/location.js";
|
||||
|
||||
describe("getLineInfo", () => {
|
||||
const input = "a\nb\nc\nd\ne\nf\ng\nh\ni";
|
||||
@@ -1,5 +1,5 @@
|
||||
import { parseSync, traverse } from "@babel/core";
|
||||
import { shouldTransform } from "../src/util.ts";
|
||||
import { shouldTransform } from "../lib/util.js";
|
||||
|
||||
function getPath(input, parserOpts = {}) {
|
||||
let targetPath;
|
||||
@@ -1,5 +1,5 @@
|
||||
import { parseSync, traverse } from "@babel/core";
|
||||
import { shouldTransform } from "../src/util.ts";
|
||||
import { shouldTransform } from "../lib/util.js";
|
||||
|
||||
function getPath(input, parserOpts = {}) {
|
||||
let targetPath;
|
||||
@@ -1,4 +1,4 @@
|
||||
import { willPathCastToBoolean } from "../src/util.js";
|
||||
import { willPathCastToBoolean } from "../lib/util.js";
|
||||
import { parseSync, traverse } from "@babel/core";
|
||||
|
||||
function getPath(input, parserOpts) {
|
||||
@@ -1,4 +1,5 @@
|
||||
import normalizeOptions from "../src/normalize-options.js";
|
||||
import normalizeOptions from "../lib/normalize-options.js";
|
||||
|
||||
describe("normalize options", () => {
|
||||
(process.env.BABEL_8_BREAKING ? describe : describe.skip)("Babel 8", () => {
|
||||
it("should throw on unknown options", () => {
|
||||
@@ -1,4 +1,5 @@
|
||||
import normalizeOptions from "../src/normalize-options.js";
|
||||
import normalizeOptions from "../lib/normalize-options.js";
|
||||
|
||||
describe("normalize options", () => {
|
||||
(process.env.BABEL_8_BREAKING ? describe : describe.skip)("Babel 8", () => {
|
||||
it("should throw on unknown options", () => {
|
||||
Reference in New Issue
Block a user