mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Baseline emitted files that are written even if same file contents
This commit is contained in:
+35
-14
@@ -33,6 +33,10 @@ namespace vfs {
|
||||
let devCount = 0; // A monotonically increasing count of device ids
|
||||
let inoCount = 0; // A monotonically increasing count of inodes
|
||||
|
||||
export interface DiffOptions {
|
||||
includeChangedFileWithSameContent?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents a virtual POSIX-like file system.
|
||||
*/
|
||||
@@ -693,21 +697,25 @@ namespace vfs {
|
||||
* Generates a `FileSet` patch containing all the entries in this `FileSystem` that are not in `base`.
|
||||
* @param base The base file system. If not provided, this file system's `shadowRoot` is used (if present).
|
||||
*/
|
||||
public diff(base = this.shadowRoot) {
|
||||
public diff(base = this.shadowRoot, options: DiffOptions = {}) {
|
||||
const differences: FileSet = {};
|
||||
const hasDifferences = base ? FileSystem.rootDiff(differences, this, base) : FileSystem.trackCreatedInodes(differences, this, this._getRootLinks());
|
||||
const hasDifferences = base ?
|
||||
FileSystem.rootDiff(differences, this, base, options) :
|
||||
FileSystem.trackCreatedInodes(differences, this, this._getRootLinks());
|
||||
return hasDifferences ? differences : undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generates a `FileSet` patch containing all the entries in `chagned` that are not in `base`.
|
||||
*/
|
||||
public static diff(changed: FileSystem, base: FileSystem) {
|
||||
public static diff(changed: FileSystem, base: FileSystem, options: DiffOptions = {}) {
|
||||
const differences: FileSet = {};
|
||||
return FileSystem.rootDiff(differences, changed, base) ? differences : undefined;
|
||||
return FileSystem.rootDiff(differences, changed, base, options) ?
|
||||
differences :
|
||||
undefined;
|
||||
}
|
||||
|
||||
private static diffWorker(container: FileSet, changed: FileSystem, changedLinks: ReadonlyMap<string, Inode> | undefined, base: FileSystem, baseLinks: ReadonlyMap<string, Inode> | undefined) {
|
||||
private static diffWorker(container: FileSet, changed: FileSystem, changedLinks: ReadonlyMap<string, Inode> | undefined, base: FileSystem, baseLinks: ReadonlyMap<string, Inode> | undefined, options: DiffOptions) {
|
||||
if (changedLinks && !baseLinks) return FileSystem.trackCreatedInodes(container, changed, changedLinks);
|
||||
if (baseLinks && !changedLinks) return FileSystem.trackDeletedInodes(container, baseLinks);
|
||||
if (changedLinks && baseLinks) {
|
||||
@@ -724,10 +732,10 @@ namespace vfs {
|
||||
const baseNode = baseLinks.get(basename);
|
||||
if (baseNode) {
|
||||
if (isDirectory(changedNode) && isDirectory(baseNode)) {
|
||||
return hasChanges = FileSystem.directoryDiff(container, basename, changed, changedNode, base, baseNode) || hasChanges;
|
||||
return hasChanges = FileSystem.directoryDiff(container, basename, changed, changedNode, base, baseNode, options) || hasChanges;
|
||||
}
|
||||
if (isFile(changedNode) && isFile(baseNode)) {
|
||||
return hasChanges = FileSystem.fileDiff(container, basename, changed, changedNode, base, baseNode) || hasChanges;
|
||||
return hasChanges = FileSystem.fileDiff(container, basename, changed, changedNode, base, baseNode, options) || hasChanges;
|
||||
}
|
||||
if (isSymlink(changedNode) && isSymlink(baseNode)) {
|
||||
return hasChanges = FileSystem.symlinkDiff(container, basename, changedNode, baseNode) || hasChanges;
|
||||
@@ -740,7 +748,7 @@ namespace vfs {
|
||||
return false;
|
||||
}
|
||||
|
||||
private static rootDiff(container: FileSet, changed: FileSystem, base: FileSystem) {
|
||||
private static rootDiff(container: FileSet, changed: FileSystem, base: FileSystem, options: DiffOptions) {
|
||||
while (!changed._lazy.links && changed._shadowRoot) changed = changed._shadowRoot;
|
||||
while (!base._lazy.links && base._shadowRoot) base = base._shadowRoot;
|
||||
|
||||
@@ -750,10 +758,10 @@ namespace vfs {
|
||||
// no difference if the root links are empty and unshadowed
|
||||
if (!changed._lazy.links && !changed._shadowRoot && !base._lazy.links && !base._shadowRoot) return false;
|
||||
|
||||
return FileSystem.diffWorker(container, changed, changed._getRootLinks(), base, base._getRootLinks());
|
||||
return FileSystem.diffWorker(container, changed, changed._getRootLinks(), base, base._getRootLinks(), options);
|
||||
}
|
||||
|
||||
private static directoryDiff(container: FileSet, basename: string, changed: FileSystem, changedNode: DirectoryInode, base: FileSystem, baseNode: DirectoryInode) {
|
||||
private static directoryDiff(container: FileSet, basename: string, changed: FileSystem, changedNode: DirectoryInode, base: FileSystem, baseNode: DirectoryInode, options: DiffOptions) {
|
||||
while (!changedNode.links && changedNode.shadowRoot) changedNode = changedNode.shadowRoot;
|
||||
while (!baseNode.links && baseNode.shadowRoot) baseNode = baseNode.shadowRoot;
|
||||
|
||||
@@ -770,7 +778,7 @@ namespace vfs {
|
||||
|
||||
// no difference if both nodes have identical children
|
||||
const children: FileSet = {};
|
||||
if (!FileSystem.diffWorker(children, changed, changed._getLinks(changedNode), base, base._getLinks(baseNode))) {
|
||||
if (!FileSystem.diffWorker(children, changed, changed._getLinks(changedNode), base, base._getLinks(baseNode), options)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -778,7 +786,7 @@ namespace vfs {
|
||||
return true;
|
||||
}
|
||||
|
||||
private static fileDiff(container: FileSet, basename: string, changed: FileSystem, changedNode: FileInode, base: FileSystem, baseNode: FileInode) {
|
||||
private static fileDiff(container: FileSet, basename: string, changed: FileSystem, changedNode: FileInode, base: FileSystem, baseNode: FileInode, options: DiffOptions) {
|
||||
while (!changedNode.buffer && changedNode.shadowRoot) changedNode = changedNode.shadowRoot;
|
||||
while (!baseNode.buffer && baseNode.shadowRoot) baseNode = baseNode.shadowRoot;
|
||||
|
||||
@@ -800,7 +808,11 @@ namespace vfs {
|
||||
if (changedBuffer === baseBuffer) return false;
|
||||
|
||||
// no difference if both buffers are identical
|
||||
if (Buffer.compare(changedBuffer, baseBuffer) === 0) return false;
|
||||
if (Buffer.compare(changedBuffer, baseBuffer) === 0) {
|
||||
if (!options.includeChangedFileWithSameContent) return false;
|
||||
container[basename] = new SameFileContentFile(changedBuffer);
|
||||
return true;
|
||||
}
|
||||
|
||||
container[basename] = new File(changedBuffer);
|
||||
return true;
|
||||
@@ -1360,6 +1372,12 @@ namespace vfs {
|
||||
}
|
||||
}
|
||||
|
||||
export class SameFileContentFile extends File {
|
||||
constructor(data: Buffer | string, metaAndEncoding?: { encoding?: string, meta?: Record<string, any> }) {
|
||||
super(data, metaAndEncoding);
|
||||
}
|
||||
}
|
||||
|
||||
/** Extended options for a hard link in a `FileSet` */
|
||||
export class Link {
|
||||
public readonly path: string;
|
||||
@@ -1546,6 +1564,9 @@ namespace vfs {
|
||||
else if (entry instanceof Directory) {
|
||||
text += formatPatchWorker(file, entry.files);
|
||||
}
|
||||
else if (entry instanceof SameFileContentFile) {
|
||||
text += `//// [${file}] file written with same contents\r\n`;
|
||||
}
|
||||
else if (entry instanceof File) {
|
||||
const content = typeof entry.data === "string" ? entry.data : entry.data.toString("utf8");
|
||||
text += `//// [${file}]\r\n${content}\r\n\r\n`;
|
||||
@@ -1582,4 +1603,4 @@ namespace vfs {
|
||||
}
|
||||
}
|
||||
}
|
||||
// tslint:enable:no-null-keyword
|
||||
// tslint:enable:no-null-keyword
|
||||
|
||||
@@ -285,7 +285,7 @@ interface Symbol {
|
||||
}
|
||||
|
||||
function generateBaseline(fs: vfs.FileSystem, proj: string, scenario: string, subScenario: string, baseFs: vfs.FileSystem) {
|
||||
const patch = fs.diff(baseFs);
|
||||
const patch = fs.diff(baseFs, { includeChangedFileWithSameContent: true });
|
||||
// tslint:disable-next-line:no-null-keyword
|
||||
Harness.Baseline.runBaseline(`tsbuild/${proj}/${subScenario.split(" ").join("-")}/${scenario.split(" ").join("-")}.js`, patch ? vfs.formatPatch(patch) : null);
|
||||
}
|
||||
|
||||
+3
@@ -332,6 +332,9 @@ declare const myVar = 30;
|
||||
//// [/src/lib/file1.ts]
|
||||
export const x = 10;console.log(x);
|
||||
|
||||
//// [/src/lib/module.d.ts] file written with same contents
|
||||
//// [/src/lib/module.d.ts.map] file written with same contents
|
||||
//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents
|
||||
//// [/src/lib/module.js]
|
||||
var myGlob = 20;
|
||||
define("file1", ["require", "exports"], function (require, exports) {
|
||||
|
||||
+3
@@ -790,6 +790,9 @@ export const x = 10;function forlibfile1Rest() {
|
||||
const { b, ...rest } = { a: 10, b: 30, yy: 30 };
|
||||
}console.log(x);
|
||||
|
||||
//// [/src/lib/module.d.ts] file written with same contents
|
||||
//// [/src/lib/module.d.ts.map] file written with same contents
|
||||
//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents
|
||||
//// [/src/lib/module.js]
|
||||
var __read = (this && this.__read) || function (o, n) {
|
||||
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
||||
|
||||
+3
@@ -482,6 +482,9 @@ declare const myVar = 30;
|
||||
//// [/src/lib/file1.ts]
|
||||
export const x = 10;console.log(x);
|
||||
|
||||
//// [/src/lib/module.d.ts] file written with same contents
|
||||
//// [/src/lib/module.d.ts.map] file written with same contents
|
||||
//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents
|
||||
//// [/src/lib/module.js]
|
||||
"use strict";
|
||||
"myPrologue";
|
||||
|
||||
+3
@@ -338,6 +338,9 @@ declare const myVar = 30;
|
||||
#!someshebang lib file1
|
||||
export const x = 10;console.log(x);
|
||||
|
||||
//// [/src/lib/module.d.ts] file written with same contents
|
||||
//// [/src/lib/module.d.ts.map] file written with same contents
|
||||
//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents
|
||||
//// [/src/lib/module.js]
|
||||
#!someshebang lib file0
|
||||
var myGlob = 20;
|
||||
|
||||
+3
@@ -1893,6 +1893,9 @@ export namespace normalN {
|
||||
/*@internal*/ export const internalConst = 10;
|
||||
/*@internal*/ export enum internalEnum { a, b, c }console.log(x);
|
||||
|
||||
//// [/src/lib/module.d.ts] file written with same contents
|
||||
//// [/src/lib/module.d.ts.map] file written with same contents
|
||||
//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents
|
||||
//// [/src/lib/module.js]
|
||||
/*@internal*/ var myGlob = 20;
|
||||
define("file1", ["require", "exports"], function (require, exports) {
|
||||
|
||||
+3
@@ -432,6 +432,9 @@ declare const myVar = 30;
|
||||
//// [/src/lib/file1.ts]
|
||||
export const x = 10;console.log(x);
|
||||
|
||||
//// [/src/lib/module.d.ts] file written with same contents
|
||||
//// [/src/lib/module.d.ts.map] file written with same contents
|
||||
//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents
|
||||
//// [/src/lib/module.js]
|
||||
///<reference path="./tripleRef.d.ts"/>
|
||||
var file0Const = new libfile0();
|
||||
|
||||
+3
@@ -724,6 +724,9 @@ declare function appfile4Spread(...b: number[]): void;
|
||||
//// [/src/lib/file1.ts]
|
||||
export const x = 10;function forlibfile1Rest() { }
|
||||
|
||||
//// [/src/lib/module.d.ts] file written with same contents
|
||||
//// [/src/lib/module.d.ts.map] file written with same contents
|
||||
//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents
|
||||
//// [/src/lib/module.js]
|
||||
var __read = (this && this.__read) || function (o, n) {
|
||||
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
||||
|
||||
+1
@@ -647,6 +647,7 @@ declare const myVar = 30;
|
||||
"myPrologue5"
|
||||
export const x = 10;
|
||||
|
||||
//// [/src/lib/module.d.ts] file written with same contents
|
||||
//// [/src/lib/module.d.ts.map]
|
||||
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC"}
|
||||
|
||||
|
||||
+1
@@ -2071,6 +2071,7 @@ export namespace normalN {
|
||||
/*@internal*/ export const internalConst = 10;
|
||||
/*@internal*/ export enum internalEnum { a, b, c }
|
||||
|
||||
//// [/src/lib/module.d.ts] file written with same contents
|
||||
//// [/src/lib/module.d.ts.map]
|
||||
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAc,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IAClC,MAAM,OAAO,OAAO;;QAEF,IAAI,EAAE,MAAM,CAAC;QACb,MAAM;sBACF,CAAC,EACM,MAAM;KAClC;IACD,MAAM,WAAW,OAAO,CAAC;QACP,MAAa,CAAC;SAAI;QAClB,SAAgB,GAAG,SAAK;QACxB,UAAiB,aAAa,CAAC;YAAE,MAAa,CAAC;aAAG;SAAE;QACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;YAAE,MAAa,SAAS;aAAG;SAAE;QAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;QAC9B,MAAM,aAAa,KAAK,CAAC;QAChC,KAAY,YAAY;YAAG,CAAC,IAAA;YAAE,CAAC,IAAA;YAAE,CAAC,IAAA;SAAE;KACrD;IACa,MAAM,OAAO,SAAS;KAAG;IACzB,MAAM,UAAU,WAAW,SAAK;IAChC,MAAM,WAAW,iBAAiB,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAChE,MAAM,WAAW,aAAa,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACtE,MAAM,QAAQ,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAC3D,MAAM,MAAM,YAAY,GAAG,SAAS,CAAC;IACrC,MAAM,CAAC,MAAM,aAAa,KAAK,CAAC;IAChC,MAAM,MAAM,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;;;ICzBlD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC"}
|
||||
|
||||
|
||||
+6
@@ -9,6 +9,12 @@ export interface A {
|
||||
//// [/src/lib/a.d.ts.map]
|
||||
{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;IAAC,GAAG,EAAE,GAAG,CAAC;CAChB"}
|
||||
|
||||
//// [/src/lib/b.d.ts] file written with same contents
|
||||
//// [/src/lib/b.d.ts.map] file written with same contents
|
||||
//// [/src/lib/c.d.ts] file written with same contents
|
||||
//// [/src/lib/c.d.ts.map] file written with same contents
|
||||
//// [/src/lib/index.d.ts] file written with same contents
|
||||
//// [/src/lib/index.d.ts.map] file written with same contents
|
||||
//// [/src/src/a.ts]
|
||||
import { B } from "./b";
|
||||
|
||||
|
||||
+3
@@ -6,6 +6,9 @@ export interface A {
|
||||
}
|
||||
|
||||
|
||||
//// [/src/lib/b.d.ts] file written with same contents
|
||||
//// [/src/lib/c.d.ts] file written with same contents
|
||||
//// [/src/lib/index.d.ts] file written with same contents
|
||||
//// [/src/src/a.ts]
|
||||
import { B } from "./b";
|
||||
|
||||
|
||||
+4
@@ -11,6 +11,10 @@ export interface A {
|
||||
//// [/src/lib/a.d.ts.map]
|
||||
{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IAAG,IAAI,SAAW;CAAE;AAElC,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;IAAC,GAAG,EAAE,GAAG,CAAC;CAChB"}
|
||||
|
||||
//// [/src/lib/b.d.ts] file written with same contents
|
||||
//// [/src/lib/b.d.ts.map] file written with same contents
|
||||
//// [/src/lib/c.d.ts] file written with same contents
|
||||
//// [/src/lib/c.d.ts.map] file written with same contents
|
||||
//// [/src/src/a.ts]
|
||||
export class B { prop = "hello"; }
|
||||
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
//// [/src/lib/a.d.ts] file written with same contents
|
||||
//// [/src/lib/a.d.ts.map]
|
||||
{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IAAG,IAAI,SAAW;CAAE;AAGlC,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;CACN"}
|
||||
|
||||
|
||||
+3
@@ -26,6 +26,9 @@ import { LazyAction } from './bundling';
|
||||
export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex")>;
|
||||
|
||||
|
||||
//// [/src/obj/index.js] file written with same contents
|
||||
//// [/src/obj/lazyIndex.d.ts] file written with same contents
|
||||
//// [/src/obj/lazyIndex.js] file written with same contents
|
||||
//// [/src/obj/tsconfig.tsbuildinfo]
|
||||
{
|
||||
"program": {
|
||||
|
||||
+3
@@ -1,3 +1,6 @@
|
||||
//// [/src/first/bin/first-output.d.ts] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents
|
||||
//// [/src/first/bin/first-output.js]
|
||||
var s = "Hello, world";
|
||||
console.log(s);
|
||||
|
||||
+3
@@ -1,3 +1,6 @@
|
||||
//// [/src/first/bin/first-output.d.ts] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents
|
||||
//// [/src/first/bin/first-output.js]
|
||||
var __rest = (this && this.__rest) || function (s, e) {
|
||||
var t = {};
|
||||
|
||||
+3
@@ -1,3 +1,6 @@
|
||||
//// [/src/first/bin/first-output.d.ts] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents
|
||||
//// [/src/first/bin/first-output.js]
|
||||
var s = "Hello, world";
|
||||
console.log(s);
|
||||
|
||||
+3
@@ -1,3 +1,6 @@
|
||||
//// [/src/first/bin/first-output.d.ts] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents
|
||||
//// [/src/first/bin/first-output.js]
|
||||
var __rest = (this && this.__rest) || function (s, e) {
|
||||
var t = {};
|
||||
|
||||
+3
@@ -1,3 +1,6 @@
|
||||
//// [/src/first/bin/first-output.d.ts] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents
|
||||
//// [/src/first/bin/first-output.js]
|
||||
var __rest = (this && this.__rest) || function (s, e) {
|
||||
var t = {};
|
||||
|
||||
+3
@@ -1,3 +1,6 @@
|
||||
//// [/src/first/bin/first-output.d.ts] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents
|
||||
//// [/src/first/bin/first-output.js]
|
||||
"use strict";
|
||||
"myPrologue";
|
||||
|
||||
+3
@@ -1,3 +1,6 @@
|
||||
//// [/src/first/bin/first-output.d.ts] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents
|
||||
//// [/src/first/bin/first-output.js]
|
||||
"use strict";
|
||||
var s = "Hello, world";
|
||||
|
||||
+3
@@ -1,3 +1,6 @@
|
||||
//// [/src/first/bin/first-output.d.ts] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents
|
||||
//// [/src/first/bin/first-output.js]
|
||||
#!someshebang first first_PART1
|
||||
var s = "Hello, world";
|
||||
|
||||
+3
@@ -1,3 +1,6 @@
|
||||
//// [/src/first/bin/first-output.d.ts] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents
|
||||
//// [/src/first/bin/first-output.js]
|
||||
var s = "Hello, world";
|
||||
console.log(s);
|
||||
|
||||
+3
@@ -1,3 +1,6 @@
|
||||
//// [/src/first/bin/first-output.d.ts] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents
|
||||
//// [/src/first/bin/first-output.js]
|
||||
"use strict";
|
||||
var s = "Hello, world";
|
||||
|
||||
+3
@@ -1,3 +1,6 @@
|
||||
//// [/src/first/bin/first-output.d.ts] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents
|
||||
//// [/src/first/bin/first-output.js]
|
||||
var s = "Hello, world";
|
||||
console.log(s);
|
||||
|
||||
+3
@@ -2024,6 +2024,9 @@ declare class C {
|
||||
|
||||
======================================================================
|
||||
|
||||
//// [/src/first/bin/first-output.d.ts] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents
|
||||
//// [/src/first/bin/first-output.js]
|
||||
var s = "Hello, world";
|
||||
console.log(s);
|
||||
|
||||
+3
@@ -1,3 +1,6 @@
|
||||
//// [/src/first/bin/first-output.d.ts] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents
|
||||
//// [/src/first/bin/first-output.js]
|
||||
var s = "Hello, world";
|
||||
console.log(s);
|
||||
|
||||
+3
@@ -2124,6 +2124,9 @@ declare class C {
|
||||
|
||||
======================================================================
|
||||
|
||||
//// [/src/first/bin/first-output.d.ts] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents
|
||||
//// [/src/first/bin/first-output.js]
|
||||
var s = "Hello, world";
|
||||
console.log(s);
|
||||
|
||||
+3
@@ -1,3 +1,6 @@
|
||||
//// [/src/first/bin/first-output.d.ts] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents
|
||||
//// [/src/first/bin/first-output.js]
|
||||
var s = "Hello, world";
|
||||
console.log(s);
|
||||
|
||||
+3
@@ -2024,6 +2024,9 @@ declare class C {
|
||||
|
||||
======================================================================
|
||||
|
||||
//// [/src/first/bin/first-output.d.ts] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents
|
||||
//// [/src/first/bin/first-output.js]
|
||||
var s = "Hello, world";
|
||||
console.log(s);
|
||||
|
||||
+3
@@ -2124,6 +2124,9 @@ declare class C {
|
||||
|
||||
======================================================================
|
||||
|
||||
//// [/src/first/bin/first-output.d.ts] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents
|
||||
//// [/src/first/bin/first-output.js]
|
||||
var s = "Hello, world";
|
||||
console.log(s);
|
||||
|
||||
+3
@@ -1,3 +1,6 @@
|
||||
//// [/src/first/bin/first-output.d.ts] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents
|
||||
//// [/src/first/bin/first-output.js]
|
||||
var s = "Hello, world";
|
||||
console.log(s);
|
||||
|
||||
+3
@@ -1,3 +1,6 @@
|
||||
//// [/src/first/bin/first-output.d.ts] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents
|
||||
//// [/src/first/bin/first-output.js]
|
||||
var s = "Hello, world";
|
||||
console.log(s);
|
||||
|
||||
+3
@@ -1,3 +1,6 @@
|
||||
//// [/src/first/bin/first-output.d.ts] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents
|
||||
//// [/src/first/bin/first-output.js]
|
||||
var s = "Hello, world";
|
||||
console.log(s);
|
||||
|
||||
+3
@@ -1,3 +1,6 @@
|
||||
//// [/src/first/bin/first-output.d.ts] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents
|
||||
//// [/src/first/bin/first-output.js]
|
||||
var s = "Hello, world";
|
||||
console.log(s);
|
||||
|
||||
+6
@@ -1,3 +1,6 @@
|
||||
//// [/src/first/bin/first-output.d.ts] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents
|
||||
//// [/src/first/bin/first-output.js]
|
||||
var s = "Hello, world";
|
||||
console.log(s);
|
||||
@@ -257,6 +260,9 @@ interface NoJsForHereEither {
|
||||
console.log(s);
|
||||
console.log(s);
|
||||
|
||||
//// [/src/third/thirdjs/output/third-output.d.ts] file written with same contents
|
||||
//// [/src/third/thirdjs/output/third-output.d.ts.map] file written with same contents
|
||||
//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] file written with same contents
|
||||
//// [/src/third/thirdjs/output/third-output.js]
|
||||
var s = "Hello, world";
|
||||
console.log(s);
|
||||
|
||||
+3
@@ -1,3 +1,6 @@
|
||||
//// [/src/first/bin/first-output.d.ts] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents
|
||||
//// [/src/first/bin/first-output.js]
|
||||
var s = "Hello, world";
|
||||
console.log(s);
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
//// [/src/first/bin/first-output.d.ts] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map]
|
||||
{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET"}
|
||||
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
//// [/src/first/bin/first-output.d.ts] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map]
|
||||
{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET"}
|
||||
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
//// [/src/first/bin/first-output.d.ts] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map]
|
||||
{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK"}
|
||||
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
//// [/src/first/bin/first-output.d.ts] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map]
|
||||
{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET"}
|
||||
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
//// [/src/first/bin/first-output.d.ts] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map]
|
||||
{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAEA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AEVD,iBAAS,CAAC,WAET"}
|
||||
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
//// [/src/first/bin/first-output.d.ts] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map]
|
||||
{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET"}
|
||||
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
//// [/src/first/bin/first-output.d.ts] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map]
|
||||
{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET"}
|
||||
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
//// [/src/first/bin/first-output.d.ts] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map]
|
||||
{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET"}
|
||||
|
||||
|
||||
+3
@@ -1072,6 +1072,7 @@ declare class C {
|
||||
|
||||
======================================================================
|
||||
|
||||
//// [/src/first/bin/first-output.d.ts] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map]
|
||||
{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"}
|
||||
|
||||
@@ -1205,6 +1206,8 @@ sourceFile:../first_part3.ts
|
||||
---
|
||||
>>>//# sourceMappingURL=first-output.d.ts.map
|
||||
|
||||
//// [/src/first/bin/first-output.js] file written with same contents
|
||||
//// [/src/first/bin/first-output.js.map] file written with same contents
|
||||
//// [/src/first/bin/first-output.js.map.baseline.txt]
|
||||
===================================================================
|
||||
JsFile: first-output.js
|
||||
|
||||
+3
@@ -1,3 +1,4 @@
|
||||
//// [/src/first/bin/first-output.d.ts] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map]
|
||||
{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"}
|
||||
|
||||
@@ -131,6 +132,8 @@ sourceFile:../first_part3.ts
|
||||
---
|
||||
>>>//# sourceMappingURL=first-output.d.ts.map
|
||||
|
||||
//// [/src/first/bin/first-output.js] file written with same contents
|
||||
//// [/src/first/bin/first-output.js.map] file written with same contents
|
||||
//// [/src/first/bin/first-output.js.map.baseline.txt]
|
||||
===================================================================
|
||||
JsFile: first-output.js
|
||||
|
||||
+3
@@ -1072,6 +1072,7 @@ declare class C {
|
||||
|
||||
======================================================================
|
||||
|
||||
//// [/src/first/bin/first-output.d.ts] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map]
|
||||
{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"}
|
||||
|
||||
@@ -1205,6 +1206,8 @@ sourceFile:../first_part3.ts
|
||||
---
|
||||
>>>//# sourceMappingURL=first-output.d.ts.map
|
||||
|
||||
//// [/src/first/bin/first-output.js] file written with same contents
|
||||
//// [/src/first/bin/first-output.js.map] file written with same contents
|
||||
//// [/src/first/bin/first-output.js.map.baseline.txt]
|
||||
===================================================================
|
||||
JsFile: first-output.js
|
||||
|
||||
+3
@@ -1072,6 +1072,7 @@ declare class C {
|
||||
|
||||
======================================================================
|
||||
|
||||
//// [/src/first/bin/first-output.d.ts] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map]
|
||||
{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"}
|
||||
|
||||
@@ -1205,6 +1206,8 @@ sourceFile:../first_part3.ts
|
||||
---
|
||||
>>>//# sourceMappingURL=first-output.d.ts.map
|
||||
|
||||
//// [/src/first/bin/first-output.js] file written with same contents
|
||||
//// [/src/first/bin/first-output.js.map] file written with same contents
|
||||
//// [/src/first/bin/first-output.js.map.baseline.txt]
|
||||
===================================================================
|
||||
JsFile: first-output.js
|
||||
|
||||
+3
@@ -1,3 +1,4 @@
|
||||
//// [/src/first/bin/first-output.d.ts] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map]
|
||||
{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"}
|
||||
|
||||
@@ -131,6 +132,8 @@ sourceFile:../first_part3.ts
|
||||
---
|
||||
>>>//# sourceMappingURL=first-output.d.ts.map
|
||||
|
||||
//// [/src/first/bin/first-output.js] file written with same contents
|
||||
//// [/src/first/bin/first-output.js.map] file written with same contents
|
||||
//// [/src/first/bin/first-output.js.map.baseline.txt]
|
||||
===================================================================
|
||||
JsFile: first-output.js
|
||||
|
||||
+3
@@ -1,3 +1,4 @@
|
||||
//// [/src/first/bin/first-output.d.ts] file written with same contents
|
||||
//// [/src/first/bin/first-output.d.ts.map]
|
||||
{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"}
|
||||
|
||||
@@ -131,6 +132,8 @@ sourceFile:../first_part3.ts
|
||||
---
|
||||
>>>//# sourceMappingURL=first-output.d.ts.map
|
||||
|
||||
//// [/src/first/bin/first-output.js] file written with same contents
|
||||
//// [/src/first/bin/first-output.js.map] file written with same contents
|
||||
//// [/src/first/bin/first-output.js.map.baseline.txt]
|
||||
===================================================================
|
||||
JsFile: first-output.js
|
||||
|
||||
@@ -207,6 +207,10 @@ export class someClass { }
|
||||
"version": "FakeTSVersion"
|
||||
}
|
||||
|
||||
//// [/src/logic/index.d.ts] file written with same contents
|
||||
//// [/src/logic/index.js] file written with same contents
|
||||
//// [/src/logic/index.js.map] file written with same contents
|
||||
//// [/src/logic/index.js.map.baseline.txt] file written with same contents
|
||||
//// [/src/logic/tsconfig.tsbuildinfo]
|
||||
{
|
||||
"program": {
|
||||
@@ -257,6 +261,8 @@ export class someClass { }
|
||||
"version": "FakeTSVersion"
|
||||
}
|
||||
|
||||
//// [/src/tests/index.d.ts] file written with same contents
|
||||
//// [/src/tests/index.js] file written with same contents
|
||||
//// [/src/tests/tsconfig.tsbuildinfo]
|
||||
{
|
||||
"program": {
|
||||
|
||||
+2
@@ -2,12 +2,14 @@
|
||||
export declare const World = "hello";
|
||||
|
||||
|
||||
//// [/src/core/anotherModule.js] file written with same contents
|
||||
//// [/src/core/index.d.ts]
|
||||
export declare const someString: string;
|
||||
export declare function leftPad(s: string, n: number): string;
|
||||
export declare function multiply(a: number, b: number): number;
|
||||
|
||||
|
||||
//// [/src/core/index.js] file written with same contents
|
||||
//// [/src/core/tsconfig.json]
|
||||
{
|
||||
"compilerOptions": {
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
//// [/src/tests/index.d.ts] file written with same contents
|
||||
//// [/src/tests/index.js]
|
||||
"use strict";
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
|
||||
+5
@@ -4,6 +4,9 @@ import * as mod from '../core/anotherModule';
|
||||
export declare const m: typeof mod;
|
||||
|
||||
|
||||
//// [/src/logic/index.js] file written with same contents
|
||||
//// [/src/logic/index.js.map] file written with same contents
|
||||
//// [/src/logic/index.js.map.baseline.txt] file written with same contents
|
||||
//// [/src/logic/tsconfig.json]
|
||||
{
|
||||
"compilerOptions": {
|
||||
@@ -71,6 +74,8 @@ export declare const m: typeof mod;
|
||||
"version": "FakeTSVersion"
|
||||
}
|
||||
|
||||
//// [/src/tests/index.d.ts] file written with same contents
|
||||
//// [/src/tests/index.js] file written with same contents
|
||||
//// [/src/tests/tsconfig.tsbuildinfo]
|
||||
{
|
||||
"program": {
|
||||
|
||||
+3
@@ -1,3 +1,6 @@
|
||||
//// [/src/core/index.d.ts] file written with same contents
|
||||
//// [/src/core/index.d.ts.map] file written with same contents
|
||||
//// [/src/core/index.d.ts.map.baseline.txt] file written with same contents
|
||||
//// [/src/core/index.js]
|
||||
"use strict";
|
||||
exports.__esModule = true;
|
||||
|
||||
Reference in New Issue
Block a user