Logo
Explore Help
Sign In
DaddyFrosty/yoga
1
0
Fork 0
You've already forked yoga
Code Issues 96 Pull Requests 31 Actions Packages Projects Releases 33 Wiki Activity
Files
7fe2a0ea74e63e8a53aa217f102ed363158ac875
yoga/gentest/gentest-log.js

12 lines
309 B
JavaScript
Raw Normal View History

Make it so that we can console.log in browser to debug gentest (#1718) Summary: Pull Request resolved: https://github.com/facebook/yoga/pull/1718 Our gentest works by console.logging the contents of the test it is generating to the browser powered by the driver. The driver then reads the logs and writes it to a file. An unfortunate side effect here is that we cannot console.log to debug how the gentest logic actually works since the driver is expecting formatted code. To get around this I had the driver filter out logs with a certain prefix and add that a helper that logs a message with this prefix to the scripts. Reviewed By: NickGerleman Differential Revision: D64011035 fbshipit-source-id: 1f113fde425d1d7db1c16ab85f4bb16b0e18f41d
2024-10-09 19:20:15 -07:00
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// eslint-disable-next-line no-unused-vars
function gentestLog(message) {
console.log('gentest-log: ', message);
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.3 Page: 100ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API