Skip to content

Commit

Permalink
Update snapshot.
Browse files Browse the repository at this point in the history
  • Loading branch information
dumganhar committed Aug 12, 2024
1 parent e7e6c86 commit ab263a4
Show file tree
Hide file tree
Showing 3 changed files with 131 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ exports[`engine-js: output content 1`] = `
return 'internal-minigame-export env';
}
var test = exports('test', 'this is a module for testing no symlink');
var test = exports("test", 'this is a module for testing no symlink');
})
};
Expand Down
4 changes: 2 additions & 2 deletions test/build-engine/__snapshots__/engine-ts.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ import { EDITOR, TEST } from "../__virtual__/internal_constants";
import "./module.native";
import "../pal/audio/native";
import "../pal/minigame/native";
import { testDecorator } from "../decorators";
import { testDecorator } from '../decorators';
import { testDecorator as testDecorator2 } from "../decorators";
import { zlib } from '../external/zlib';
import { zlib as zlib2 } from '../external/zlib.js';
Expand Down Expand Up @@ -478,7 +478,7 @@ class A {
"code": "import './decorator';
import { RectAlias } from './rect';
import { PathAlias } from './path';
let p: PathAlias = new PathAlias();
const p: PathAlias = new PathAlias();
const r: RectAlias = RectAlias.from(0, 0, 100, 100);
interface Test {
r: RectAlias;
Expand Down
128 changes: 128 additions & 0 deletions test/dts-bundler/__snapshots__/dts-bundler.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,141 @@ exports[`bundle dts: cc.d.ts content 1`] = `
testEnv(): string;
}>;
export type TsImportTypes = typeof __private._packages_module_query_env_src_index;
export enum MyEnum2 {
AAABBB = 0,
Haha = 0,
Hi = 123
}
export enum MyEnum3 {
WEBGL = 16,
WEBGPU = 17,
WEBGL2 = 18
}
export enum MyEnum5 {
RGB = 15,
RGBA = 16,
III = 17,
HHH = 18,
WWW = 4,
ZZZ = 5,
UUU = 1234,
EEE = 1235
}
export enum MyEnum6 {
UNION = 15
}
export class MyNode {
static Format: typeof __private._cocos_enums_define.Format;
static Format_2: typeof __private._cocos_enums_define.Format_2;
constructor(a: number);
}
export enum Format {
UNKNOWN = 0,
A8 = 1,
L8 = 2,
LA8 = 3,
R5G6B5 = 4,
R11G11B10F = 5,
RGB5A1 = 6,
RGBA4 = 7,
RGB10A2 = 8,
RGB10A2UI = 9,
RGB9E5 = 10,
DEPTH = 11,
DEPTH_STENCIL = 12,
R = 13,
RG = 14,
RGB = 15,
RGBA = 16,
COUNT = 17
}
export enum Format_2 {
R = 13,
RG = 14,
RGB = 15,
RGBA = 31,
Haha = 134,
www = 135
}
export enum TransformBit {
NONE = 0,
POSITION = 1,
ROTATION = 2,
SCALE = 4,
RS = 6,
TRS = 7,
TRS_MASK = "Bad expression <-8>"
}
export enum PixelFormat {
RGB565 = 4,
A8 = 1,
I8 = 2,
AI8 = 3,
RGB_A_PVRTC_2BPPV1 = 1024,
RGB_A_PVRTC_4BPPV1 = 1025,
RGB_ETC1 = 123,
RGBA_ETC1 = 1026,
RGB_ETC2 = 123213,
RGBA_ETC2 = 123214
}
export const str = "intrinsic flag is false";
export function testEnv(): string;
export function testInternalExport(): string;
export namespace __private {
namespace _packages_module_query_env_src_index {
export function testEnv(): string;
}
namespace _cocos_enums_define {
export enum Format {
UNKNOWN = 0,
A8 = 1,
L8 = 2,
LA8 = 3,
R5G6B5 = 4,
R11G11B10F = 5,
RGB5A1 = 6,
RGBA4 = 7,
RGB10A2 = 8,
RGB10A2UI = 9,
RGB9E5 = 10,
DEPTH = 11,
DEPTH_STENCIL = 12,
R = 13,
RG = 14,
RGB = 15,
RGBA = 16,
COUNT = 17
}
export enum Format_2 {
R = 13,
RG = 14,
RGB = 15,
RGBA = 31,
Haha = 134,
www = 135
}
export enum TransformBit {
NONE = 0,
POSITION = 1,
ROTATION = 2,
SCALE = 4,
RS = 6,
TRS = 7,
TRS_MASK = "Bad expression <-8>"
}
export enum PixelFormat {
RGB565 = 4,
A8 = 1,
I8 = 2,
AI8 = 3,
RGB_A_PVRTC_2BPPV1 = 1024,
RGB_A_PVRTC_4BPPV1 = 1025,
RGB_ETC1 = 123,
RGBA_ETC1 = 1026,
RGB_ETC2 = 123213,
RGBA_ETC2 = 123214
}
}
}
export { db as c } from "cc";
export {};
Expand Down

0 comments on commit ab263a4

Please sign in to comment.