Skip to content

Commit

Permalink
test: add tsc snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
1ilsang committed Aug 4, 2024
1 parent 2d1b4a8 commit 8bf71a9
Show file tree
Hide file tree
Showing 93 changed files with 181,279 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1416,6 +1416,16 @@ lint-js-ci:
jslint-ci: lint-js-ci
$(warning Please use lint-js-ci instead of jslint-ci)

LINT_TS_TSC = test/fixtures/snapshot/tsc
LINT_TS_CONFIG = typings/tsconfig.lint.json

run-lint-ts = $(LINT_TS_TSC) --project $(LINT_TS_CONFIG)

.PHONY: lint-ts
lint-ts:
$(info Running TSC...)
@$(call available-node,$(run-lint-ts))

LINT_CPP_ADDON_DOC_FILES_GLOB = test/addons/??_*/*.cc test/addons/??_*/*.h
LINT_CPP_ADDON_DOC_FILES = $(wildcard $(LINT_CPP_ADDON_DOC_FILES_GLOB))
LINT_CPP_EXCLUDE ?=
Expand Down
22 changes: 22 additions & 0 deletions test/fixtures/snapshot/lib.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es5" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
Loading

0 comments on commit 8bf71a9

Please sign in to comment.